]> git.lyx.org Git - features.git/commitdiff
Fixed bug on toggling selection inside InsetText. (fix #???)
authorJürgen Vigna <jug@sad.it>
Thu, 28 Mar 2002 16:09:58 +0000 (16:09 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 28 Mar 2002 16:09:58 +0000 (16:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3862 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/screen.C

index f1f26de529241c4489a4ec793afa316d2f98b7b7..4ceb46e54336114f4155540555aed90224945ad3 100644 (file)
@@ -4,6 +4,8 @@
 
 2002-03-28  Juergen Vigna  <jug@sad.it>
 
+       * screen.C (toggleToggle): fix for insettexts y_offset on drawing.
+
        * tabular.C (OldFormatRead): fix ert compatibility read inside cells.
 
 2002-03-27  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
index f4ec9eb99e8d315480bd75384e5e7e75c8fd24ce..e3d27a5d084b4faeba9c6755fd6c2d60f9a062ae 100644 (file)
@@ -523,10 +523,10 @@ void LyXScreen::toggleToggle(LyXText * text, BufferView * bv,
                + text->toggle_end_cursor.row()->height();
 
        int const bottom = min(max(bottom_tmp, text->first_y),
-                    static_cast<int>(text->first_y + owner.height()));
+                    static_cast<int>(text->first_y + owner.height()))-y_offset;
        int const top = min(max(top_tmp, text->first_y),
-                 static_cast<int>(text->first_y + owner.height()));
-
+                 static_cast<int>(text->first_y + owner.height()))-y_offset;
+       
        drawFromTo(text, bv, top - text->first_y,
                   bottom - text->first_y, y_offset,
                   x_offset);