Abdelrazak Younes wrote:
Jürgen Spitzmüller wrote:
- new document
- type "abc"
- return (generate empty paragraph)
- click between a and b with the mouse
I think this is because the BufferView Cursor is not up to date at the
time of the drawing (in BufferView::checkDepm()). But it is weird that
1.5 is not affected by this bug; maybe it did not show up in 1.5 because
the way dialogs are updated is different there.
Yes, that was it. I don't know if this is applicable to 1.5.
Abdel.
Author: younes
Date: Thu Dec 27 11:39:25 2007
New Revision: 22322
URL: http://www.lyx.org/trac/changeset/22322
Log:
Fix a crash with depm.
* BufferView::checkDepm(): update d->cursor_ in case of depm.
Modified:
lyx-devel/trunk/src/BufferView.cpp
Modified: lyx-devel/trunk/src/BufferView.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/BufferView.cpp?rev=22322
==============================================================================
--- lyx-devel/trunk/src/BufferView.cpp (original)
+++ lyx-devel/trunk/src/BufferView.cpp Thu Dec 27 11:39:25 2007
@@ -1550,6 +1550,8 @@
if (!changed)
return false;
+
+ d->cursor_ = cur;
updateLabels(buffer_);