mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Fix problem with c67b6be77
noted by JMarc.
This commit is contained in:
parent
c94a97e36c
commit
1344caa67a
@ -1800,6 +1800,7 @@ bool Text::dissolveInset(Cursor & cur)
|
|||||||
// save position inside inset
|
// save position inside inset
|
||||||
pos_type spos = cur.pos();
|
pos_type spos = cur.pos();
|
||||||
pit_type spit = cur.pit();
|
pit_type spit = cur.pit();
|
||||||
|
bool const inset_non_empty = cur.lastpit() != 0 || cur.lastpos() != 0;
|
||||||
cur.popBackward();
|
cur.popBackward();
|
||||||
// update cursor offset
|
// update cursor offset
|
||||||
if (spit == 0)
|
if (spit == 0)
|
||||||
@ -1813,7 +1814,7 @@ bool Text::dissolveInset(Cursor & cur)
|
|||||||
|
|
||||||
Buffer & b = *cur.buffer();
|
Buffer & b = *cur.buffer();
|
||||||
// Is there anything in this text?
|
// Is there anything in this text?
|
||||||
if (cur.lastpit() != 0 || cur.lastpos() != 0) {
|
if (inset_non_empty) {
|
||||||
// see bug 7319
|
// see bug 7319
|
||||||
// we clear the cache so that we won't get conflicts with labels
|
// we clear the cache so that we won't get conflicts with labels
|
||||||
// that get pasted into the buffer. we should update this before
|
// that get pasted into the buffer. we should update this before
|
||||||
|
Loading…
Reference in New Issue
Block a user