handle special case Newline Inset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10258 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-07-16 18:21:50 +00:00
parent 9d651c4b6d
commit 83bf606e60
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2005-07-16 Juergen Vigna <jug@lyx.org>
* text2.C (getColumnNearX): handle special case Newline Inset
* text.C (singleWidth): Just remove bogus check
2005-07-16 Michael Schmitt <michael.schmitt@teststep.org>

View File

@ -860,7 +860,7 @@ pos_type LyXText::getColumnNearX(pit_type const pit,
if (end == par.size())
return c - row.pos();
if (c && !par.isSeparator(c-1)) {
if (c && !par.isLineSeparator(c-1) && !par.isNewline(c-1)) {
boundary = true;
return c - row.pos();
}