]> git.lyx.org Git - features.git/commitdiff
Forgot to recalculate the cursor position as it is requested when calling
authorJürgen Vigna <jug@sad.it>
Fri, 3 May 2002 10:17:56 +0000 (10:17 +0000)
committerJürgen Vigna <jug@sad.it>
Fri, 3 May 2002 10:17:56 +0000 (10:17 +0000)
fitInsetCursor (fix #229).

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

src/insets/ChangeLog
src/insets/insettabular.C

index 42df52e24b729b9a0bde24b43b6d4622d5fc1c3b..60ed29946e4bb57e82c8d81489f45405a0c6091b 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-03  Juergen Vigna  <jug@sad.it>
+
+       * insettabular.C (fitInsetCursor): recalculate the cursor position
+       if I request it.
+
 2002-05-01  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * InsetgraphicsParams.[Ch]: whitespace.
index c36104fbdbbaabba138561e94a0fedeeb2b5804f..d7c59e82bf5ee72093e0234ab0f982a1443d606a 100644 (file)
@@ -1479,6 +1479,7 @@ void InsetTabular::fitInsetCursor(BufferView * bv) const
 
        int const asc = lyxfont::maxAscent(font);
        int const desc = lyxfont::maxDescent(font);
+       resetPos(bv);
        if (bv->fitLockedInsetCursor(cursor_.x(), cursor_.y(), asc, desc))
                need_update = FULL;
 }