]> git.lyx.org Git - features.git/commit
Attempt to fix #7673 in a more "interesting" way than in branch (where
authorRichard Heck <rgheck@comcast.net>
Sat, 3 Dec 2011 22:42:09 +0000 (22:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 3 Dec 2011 22:42:09 +0000 (22:42 +0000)
commit210a440609df23bf48ca1b469cbead7e445e8b6d
treeff602ff42d542a81d9be956595bb28a04a58fa0b
parent43c09d723435a5b203f2ac0c39e2086de836b386
Attempt to fix #7673 in a more "interesting" way than in branch (where
we will be cautious, of course). The problem was that we were issuing
the Buffer::changed() signal before we did updateBuffer(), and this
caused an inconsistency. The idea here is to defer issuing this signal
until we call processUpdateFlags(). We know we need a redraw if we've
deleted a whole paragraph.

This should work properly, so long as checkDepm is called from within
the dispatch mechanism. There may, however, be other paths, and I've
noted one explicitly with a FIXME in Text2.cpp. I've tested a few
different variations, however, and I haven't seen any problems. But if
we do run into problems, we can go ahead and do the update there that we
were previously doing in checkDepm itself.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40352 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.cpp
src/Cursor.cpp
src/Cursor.h
src/Text2.cpp
src/Text3.cpp