From 0b945c43edca4a1c82ff62f881273fc4f03669b8 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 3 Dec 2011 22:43:12 +0000 Subject: [PATCH] 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 --- src/BufferView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 5e7da53ba3..97c9f20e58 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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; } -- 2.39.5