]> git.lyx.org Git - lyx.git/commitdiff
Compile fix.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 21 Jan 2007 21:52:01 +0000 (21:52 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 21 Jan 2007 21:52:01 +0000 (21:52 +0000)
Michael, I guess that you need to retest this code, since the old one did
obviously not do what you intended.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16801 a592a061-630c-0410-9148-cb99ea01b6c8

src/text.C

index 07608390004fcd52048a62b977c8833dfd00ea65..69b16de8648167b4eec2ccec136c69acf66842c1 100644 (file)
@@ -887,13 +887,13 @@ void LyXText::acceptChange(LCursor & cur)
                // last paragraph of the selection requires special handling
                if (pit == end.pit()) {
                        // skip if the selection ends before the end-of-par
-                       if (end.pos < pos)
+                       if (end.pos() < pos)
                                continue;
 
                        // skip if the selection ends with the end-of-par and this is not the
                        // last paragraph of the document
                        // note: the user must be able to accept the end-of-par of the last par!
-                       if (end.pos == pos && pit != pars_.size() - 1)
+                       if (end.pos() == pos && pit != pars_.size() - 1)
                                continue;
                }