]> git.lyx.org Git - features.git/commitdiff
Crash fix (wrong cursor def)
authorMartin Vermeer <martin.vermeer@hut.fi>
Sat, 18 Oct 2003 14:43:54 +0000 (14:43 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Sat, 18 Oct 2003 14:43:54 +0000 (14:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7935 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text3.C

index d5630fcc866e43c6d6ee6c6695ada28b6a948c73..e6844ff92c5de8221b35bd1b13eaa59304a607a6 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-18  Martin Vermeer  <martin.vermeer@hut.fi>
+
+       * text3.C: fix one crash due to wrong cursor def
+
 2003-10-17  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * vc-backend.C (scanMaster): make the regex static
index 4b83a107e304b47f19dd71ebb1f9902cc1467b76..2cf575b0d6672d3e24ffa87208a0296db3ffc449 100644 (file)
@@ -1215,7 +1215,7 @@ dispatch_result LyXText::dispatch(FuncRequest const & cmd)
                if (bv->theLockingInset()) {
                        InsetOld * tli = bv->theLockingInset();
                        LyXCursor cursor = bv->text->cursor;
-                       LyXFont font = bv->text->getFont(cursorPar(), cursor.pos());
+                       LyXFont font = bv->text->getFont(bv->text->cursorPar(), cursor.pos());
                        int width = tli->width();
                        int inset_x = font.isVisibleRightToLeft()
                                ? cursor.x() - width : cursor.x();