From 0068d4597f393675b808c40b85235840a3772316 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 22 Nov 2001 11:15:20 +0000 Subject: [PATCH] fix loading of large files git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3063 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/text.C | 5 ----- src/text2.C | 6 ------ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2f77720d9d..ebe30a3a5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-22 Jean-Marc Lasgouttes + + * src/text2.C (RemoveRow): + * src/text.C (SetHeightOfRow): remove bogus call to GetRow. + 2001-10-24 Jean-Marc Lasgouttes * lib/examples/it_splash.lyx: update from Claudio Coco diff --git a/src/text.C b/src/text.C index 64fa5b2615..b4341c5933 100644 --- a/src/text.C +++ b/src/text.C @@ -1301,11 +1301,6 @@ void LyXText::SetHeightOfRow(BufferView * bview, Row * row_ptr) const LyXFont tmpfont; Inset * tmpinset = 0; - /* this must not happen before the currentrow for clear reasons. - so the trick is just to set the current row onto this row */ - int unused_y; - GetRow(row_ptr->par(), row_ptr->pos(), unused_y); - /* ok , let us initialize the maxasc and maxdesc value. * This depends in LaTeX of the font of the last character * in the paragraph. The hack below is necessary because diff --git a/src/text2.C b/src/text2.C index 267e71957a..7863fb1ac8 100644 --- a/src/text2.C +++ b/src/text2.C @@ -343,12 +343,6 @@ void LyXText::InsertRow(Row * row, LyXParagraph * par, // removes the row and reset the touched counters void LyXText::RemoveRow(Row * row) const { - /* this must not happen before the currentrow for clear reasons. - so the trick is just to set the current row onto the previous - row of this row */ - int unused_y; - GetRow(row->par(), row->pos(), unused_y); - if (row->next()) row->next()->previous(row->previous()); if (!row->previous()) {