]> git.lyx.org Git - features.git/commitdiff
handle special case Newline Inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 16 Jul 2005 18:21:50 +0000 (18:21 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 16 Jul 2005 18:21:50 +0000 (18:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10258 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 6c7845e76dacb5bae26b2f7c4cd375a225c786cd..8e2e24bc1a14d3234aec0d9c9dc5e9fb56e04aa0 100644 (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>
index 4af5de3635253578a15bdc3e17f1481d8e6dbfbd..247073f6ac7a1194e0b612471c8b321cad2d40f3 100644 (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();
        }