]> git.lyx.org Git - lyx.git/commitdiff
expand redrawing of current row to endpos()
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 16 Jan 2006 15:17:17 +0000 (15:17 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 16 Jan 2006 15:17:17 +0000 (15:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10742 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/rowpainter.C

index 69cd935086a3fcdfc4eb48a824fd9fbb630c05ee..2d595aed44d550e879ee6afe9b06c2462db865ea 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-16  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * rowpainter.C (isCursorOnRow): do not exclude endpos().
+
 2006-01-11  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * cursor.C (macroModeClose): returns true if an inset actually got
index 104e434b03970af2ba5c0f9597c8c60d5a99b840..b992b00143a71425bccc3eff85218e728ef80add 100644 (file)
@@ -735,7 +735,7 @@ bool isCursorOnRow(PainterInfo & pi, pit_type pit, RowList::const_iterator rit)
        for (lyx::size_type d = 0; d < cur.depth(); d++)
                if (cur[d].pit() == pit
                    && cur[d].pos() >= rit->pos()
-                   && cur[d].pos() < rit->endpos())
+                   && cur[d].pos() <= rit->endpos())
                        return true;
        return false;
 }