fix a crash on resize

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7268 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-07-14 09:15:58 +00:00
parent dcb9c3eabb
commit 7e5c4e7695
2 changed files with 7 additions and 1 deletions

View 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> 2003-07-11 Alfredo Braunstein <abraunst@libero.it>
* buffer.[Ch]: added new closing signal * buffer.[Ch]: added new closing signal

View File

@ -88,11 +88,13 @@ void LyXText::init(BufferView * bview, bool reinit)
rowlist_.clear(); rowlist_.clear();
need_break_row = rows().end(); need_break_row = rows().end();
width = height = 0; width = height = 0;
top_y(0);
clearPaint(); clearPaint();
} else if (!rowlist_.empty()) } else if (!rowlist_.empty())
return; return;
anchor_row_ = rows().end();
anchor_row_offset_ = 0;
ParagraphList::iterator pit = ownerParagraphs().begin(); ParagraphList::iterator pit = ownerParagraphs().begin();
ParagraphList::iterator end = ownerParagraphs().end(); ParagraphList::iterator end = ownerParagraphs().end();