alfredo's disable anchor row patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6692 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-02 22:45:56 +00:00
parent 3c1b0ea16b
commit beed3b20ef
2 changed files with 11 additions and 0 deletions

View 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:

View 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
}