Crash fix (wrong cursor def)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7935 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-10-18 14:43:54 +00:00
parent d0c18f8c60
commit b0650a1e5f
2 changed files with 5 additions and 1 deletions

View 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> 2003-10-17 Lars Gullik Bjønnes <larsbj@gullik.net>
* vc-backend.C (scanMaster): make the regex static * vc-backend.C (scanMaster): make the regex static

View File

@ -1215,7 +1215,7 @@ dispatch_result LyXText::dispatch(FuncRequest const & cmd)
if (bv->theLockingInset()) { if (bv->theLockingInset()) {
InsetOld * tli = bv->theLockingInset(); InsetOld * tli = bv->theLockingInset();
LyXCursor cursor = bv->text->cursor; 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 width = tli->width();
int inset_x = font.isVisibleRightToLeft() int inset_x = font.isVisibleRightToLeft()
? cursor.x() - width : cursor.x(); ? cursor.x() - width : cursor.x();