From 0a2ca7c7e0333ea8aa8216f260c6ec891605ef15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 8 Aug 2003 16:05:41 +0000 Subject: [PATCH] remove unneeded LyXText::redoHeightOfParagraph git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7525 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 +- src/lyxtext.h | 6 ------ src/text2.C | 16 ---------------- src/text3.C | 2 +- 4 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 88939b93ef..cad56d91e5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,7 +5,7 @@ with rebreak of full par * lyxtext.h: - * text.C (breakAgainOneRow): removed + * text.C (breakAgainOneRow, redoHeightOfParagraph): removed 2003-08-07 André Pönitz diff --git a/src/lyxtext.h b/src/lyxtext.h index 44c24323d4..3c343182be 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -145,12 +145,6 @@ public: /// string getStringToIndex(); - /** recalculates the heights of all previous rows of the - specified paragraph. needed, if the last characters font - has changed. - */ - void redoHeightOfParagraph(); - /** insert a character, moves all the following breaks in the same Paragraph one to the right and make a little rebreak */ diff --git a/src/text2.C b/src/text2.C index b5853d75f5..b62db49bcc 100644 --- a/src/text2.C +++ b/src/text2.C @@ -592,22 +592,6 @@ void LyXText::setFont(LyXFont const & font, bool toggleall) } -void LyXText::redoHeightOfParagraph() -{ - RowList::iterator tmprow = cursorRow(); - - setHeightOfRow(tmprow); - - while (tmprow != rows().begin() - && boost::prior(tmprow)->par() == tmprow->par()) { - --tmprow; - setHeightOfRow(tmprow); - } - - setCursor(cursor.par(), cursor.pos(), false, cursor.boundary()); -} - - RowList::iterator LyXText::firstRow(ParagraphList::iterator pit) { RowList::iterator rit; diff --git a/src/text3.C b/src/text3.C index 0cdf9f9b45..b834dea124 100644 --- a/src/text3.C +++ b/src/text3.C @@ -426,7 +426,7 @@ InsetOld::RESULT LyXText::dispatch(FuncRequest const & cmd) // we can set the refreshing parameters now updateCounters(); - redoHeightOfParagraph(); + redoParagraph(cursor.par()); setCursor(cursor.par(), cursor.pos()); update(); break; -- 2.39.5