]> git.lyx.org Git - features.git/commitdiff
* Fix to Bug 3903
authorAlfredo Braunstein <abraunst@lyx.org>
Thu, 21 Jun 2007 21:56:43 +0000 (21:56 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Thu, 21 Jun 2007 21:56:43 +0000 (21:56 +0000)
When moving the cursor with a mouse click, notify all left insets, not
just the top one

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18850 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index aa0416ebba6dd7ad46a5de523d6e9959799aae8a..2c229a1fce5e9d812bd9c196c6c1d41504337613 100644 (file)
@@ -1351,7 +1351,7 @@ bool BufferView::mouseSetCursor(Cursor & cur)
        bool badcursor = false;
        bool leftinset = (&cursor_.inset() != &cur.inset());
        if (leftinset)
-               badcursor = cursor_.inset().notifyCursorLeaves(cursor_);
+               badcursor = notifyCursorLeaves(cursor_, cur);
 
        // do the dEPM magic if needed
        // FIXME: (1) move this to InsetText::notifyCursorLeaves?