]> git.lyx.org Git - features.git/commitdiff
alfredo's disable anchor row patch
authorJohn Levon <levon@movementarian.org>
Wed, 2 Apr 2003 22:45:56 +0000 (22:45 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 2 Apr 2003 22:45:56 +0000 (22:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6692 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 855f795721eaeb945652fc7635b9bbdc5b76d9da..9260d7255584f818db6ffd3703b558315b6de551 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-01  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (setCursor): do not anchor to cursor row for the time being
+
 2003-04-02  John Levon  <levon@movementarian.org>
 
        * LyXAction.C:
index 3202c54f24406a045e406c76ee9c2d641c39a06e..37f1bd7500527d4125e65c9a5f298e9faf170530 100644 (file)
@@ -1734,10 +1734,17 @@ void LyXText::setCursor(LyXCursor & cur, Paragraph * par,
                cur.ix(int(x));
        } else
                cur.ix(cur.x());
+/* We take out this for the time being because 1) the redraw code is not 
+   prepared to this yet and 2) because some good policy has yet to be decided
+   while editting: for instance how to act on rows being created/deleted
+   because of DEPM.
+*/ 
+#if 0
        //if the cursor is in a visible row, anchor to it
        int topy = top_y();
        if (topy < y && y < topy + bv()->workHeight())
                anchor_row(row);
+#endif
 }