mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
5dd43bfad1
commit
0a2ca7c7e0
@ -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>
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
16
src/text2.C
16
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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user