Fix bug 1792

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9704 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-03-08 10:02:03 +00:00
parent aaca522459
commit ee1163d8e8
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2005-03-08 Martin Vermeer <martin.vermeer@hut.fi>
* text2.C: fix for cursor up/down stuck in math [bug 1792]
2005-03-07 Alfredo Braunstein <abraunst@lyx.org>
@ -13,6 +16,7 @@
* dociterator.C: include <boost/current_function.hpp>, which is
needed when assertions are disabled.
>>>>>>> 1.2135
2005-03-05 Johnathan Burchill <jkerrb@users.sourceforge.net>
* text2.C: fix for stuck cursor when traversing two
@ -28,7 +32,7 @@
* paragraph.C: fix for confused change tracker when pasting
text that begins with a lineseparator. [bug 1827]
(setChange(0, Change::INSERTED);)
* paragraph_funcs.C: fix for lost changes on triple-paste
in change tracking mode [bug 1827] (par.setChange()).

View File

@ -811,6 +811,11 @@ pos_type LyXText::getColumnNearX(pit_type const pit,
c = end - 1;
}
if (row.pos() < end && c >= end
&& par.isInset(end) && par.getInset(end)->display()) {
c = end - 1;
}
x = int(tmpx) + xo;
return c - row.pos();
}