Simple fix for #7673. We need to update the Buffer before we emit

the changed() signal.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40353 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-12-03 22:43:12 +00:00
parent 3d28c26de3
commit 0b945c43ed

View File

@ -2406,7 +2406,12 @@ bool BufferView::checkDepm(Cursor & cur, Cursor & old)
d->cursor_ = cur;
cur.forceBufferUpdate();
// we would rather not do this here, but it needs to be done before
// the changed() signal is sent. a riskier strategy has been tried
// in trunk (at r).
buffer_.updateBuffer();
// if it was requested, we've already done it
cur.clearBufferUpdate();
buffer_.changed(true);
return true;
}