Andre Poenitz wrote: > On Thu, Jul 10, 2003 at 03:50:27PM +0200, Alfredo Braunstein wrote: >> I can reproduce it reliably: resize to the minimum, then enlarge to >> maximum -> bang. >
Busted (anchor_row_ was not initialized on init). Can I apply this? Random question: Is there an intended difference between "rowlist_.clear(); init(bv)" and "init(bv, true)"? Both are used, but are slightly different. Regards, Alfredo Index: ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.1411 diff -u -p -u -r1.1411 ChangeLog --- ChangeLog 11 Jul 2003 12:21:30 -0000 1.1411 +++ ChangeLog 14 Jul 2003 08:44:17 -0000 @@ -1,3 +1,7 @@ +2003-07-14 Alfredo Braunstein <[EMAIL PROTECTED]> + + * text2.C (init): fix a crash fired on resize + 2003-07-11 Alfredo Braunstein <[EMAIL PROTECTED]> * buffer.[Ch]: added new closing signal Index: text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.381 diff -u -p -u -r1.381 text2.C --- text2.C 10 Jul 2003 11:17:31 -0000 1.381 +++ text2.C 14 Jul 2003 08:44:24 -0000 @@ -88,10 +88,12 @@ void LyXText::init(BufferView * bview, b 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();