remove unneeded LyXText::redoHeightOfParagraph

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7525 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-08-08 16:05:41 +00:00
parent 5dd43bfad1
commit 0a2ca7c7e0
4 changed files with 2 additions and 24 deletions

View File

@ -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 <poenitz@gmx.net>

View File

@ -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
*/

View File

@ -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;

View File

@ -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;