diff --git a/src/ChangeLog b/src/ChangeLog index 7c5303f828..a60d8d15b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-07-14 Alfredo Braunstein + + * text2.C (init): fix a crash fired on resize + 2003-07-11 Alfredo Braunstein * buffer.[Ch]: added new closing signal diff --git a/src/text2.C b/src/text2.C index 49e58c105a..f0bb99e35a 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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();