]> git.lyx.org Git - features.git/commitdiff
Simple fix for #7673. We need to update the Buffer before we emit
authorRichard Heck <rgheck@comcast.net>
Sat, 3 Dec 2011 22:43:12 +0000 (22:43 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 3 Dec 2011 22:43:12 +0000 (22:43 +0000)
the changed() signal.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40353 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 5e7da53ba384b5ceae02eefb6e0b011143a4f5c6..97c9f20e58cb39053d05f118adaacd59431913f2 100644 (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;
 }