]> git.lyx.org Git - features.git/commitdiff
fix a crash on resize
authorAlfredo Braunstein <abraunst@lyx.org>
Mon, 14 Jul 2003 09:15:58 +0000 (09:15 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Mon, 14 Jul 2003 09:15:58 +0000 (09:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7268 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index 7c5303f8283f001811f014fe1c7a03e4dca3a478..a60d8d15b2c523e8e548523a9f731b84b3e9c27f 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-14  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (init): fix a crash fired on resize
+       
 2003-07-11  Alfredo Braunstein  <abraunst@libero.it>
 
        * buffer.[Ch]: added new closing signal
index 49e58c105a08de90ab0e2ce2229c3e6bb9bea29c..f0bb99e35a21ba4611aa0ba49ff004d69ed7e924 100644 (file)
@@ -88,11 +88,13 @@ void LyXText::init(BufferView * bview, bool reinit)
                rowlist_.clear();
                need_break_row = rows().end();
                width = height = 0;
-               top_y(0);
                clearPaint();
        } else if (!rowlist_.empty())
                return;
 
+       anchor_row_ = rows().end();
+       anchor_row_offset_ = 0;
+
        ParagraphList::iterator pit = ownerParagraphs().begin();
        ParagraphList::iterator end = ownerParagraphs().end();