Author: rgheck
Date: Sat Dec  3 23:43:12 2011
New Revision: 40353
URL: http://www.lyx.org/trac/changeset/40353

Log:
Simple fix for #7673. We need to update the Buffer before we emit
the changed() signal.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/BufferView.cpp

Modified: lyx-devel/branches/BRANCH_2_0_X/src/BufferView.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/BufferView.cpp  Sat Dec  3 23:42:09 
2011        (r40352)
+++ lyx-devel/branches/BRANCH_2_0_X/src/BufferView.cpp  Sat Dec  3 23:43:12 
2011        (r40353)
@@ -2406,7 +2406,12 @@
 
        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;
 }

Reply via email to