mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix for bug #7319. This is an attempt to fix the bug cheaply.
We clear the refernce cache so that we won't get conflicts with labels that get pasted into the buffer. We should update this before its being empty matters. If not (i.e., if we encounter bugs), then this should instead be: cur.buffer().updateBuffer(); But we'll try the cheaper solution in trunk. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38680 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3219d4c142
commit
161e60b7ea
10
src/Text.cpp
10
src/Text.cpp
@ -1641,7 +1641,17 @@ bool Text::dissolveInset(Cursor & cur)
|
||||
spit += cur.pit();
|
||||
Buffer & b = *cur.buffer();
|
||||
cur.paragraph().eraseChar(cur.pos(), b.params().trackChanges);
|
||||
|
||||
if (!plist.empty()) {
|
||||
// see bug 7319
|
||||
// we clear the cache so that we won't get conflicts with labels
|
||||
// that get pasted into the buffer. we should update this before
|
||||
// its being empty matters. if not (i.e., if we encounter bugs),
|
||||
// then this should instead be:
|
||||
// cur.buffer().updateBuffer();
|
||||
// but we'll try the cheaper solution here.
|
||||
cur.buffer()->clearReferenceCache();
|
||||
|
||||
// ERT paragraphs have the Language latex_language.
|
||||
// This is invalid outside of ERT, so we need to
|
||||
// change it to the buffer language.
|
||||
|
Loading…
Reference in New Issue
Block a user