]> git.lyx.org Git - features.git/commitdiff
Fix crash in info inset dialog apply (bug 9896)
authorGeorg Baum <baum@lyx.org>
Thu, 10 Dec 2015 19:21:20 +0000 (20:21 +0100)
committerGeorg Baum <baum@lyx.org>
Thu, 10 Dec 2015 19:21:20 +0000 (20:21 +0100)
posBackward() is the exact inverse of posForward(), not backwardPos().

src/BufferView.cpp

index 06ea9ea6c964e9a73afda6a8e75cad07e82d44a0..e237a635eb5ca386471debadc9729462de45bc87 100644 (file)
@@ -2202,7 +2202,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
                // cursor in front of the inset.
                if (inset->hasSettings() &&
                    cur.nextInset() != inset && cur.prevInset() == inset)
-                       cur.backwardPos();
+                       cur.posBackward();
        }
 
        // Put anchor at the same position.