remove unneeded const_casts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-06-05 11:34:56 +00:00
parent 4b14c1d9be
commit ec59929f34
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-06-05 André Pönitz <poenitz@gmx.net>
* text2.C (redoParagraphs): remove two const_cast<>
2003-06-04 Lars Gullik Bjønnes <larsbj@lyx.org>
* ParagraphList.h: remove last remnants of NO_STD_LIST

View File

@ -672,7 +672,7 @@ void LyXText::redoParagraphs(LyXCursor const & cur,
if (tmprit == rows().begin()) {
// A trick/hack for UNDO.
// This is needed because in an UNDO/REDO we could have
// changed the ownerParagrah() so the paragraph inside
// changed the ownerParagraph() so the paragraph inside
// the row is NOT my really first par anymore.
// Got it Lars ;) (Jug 20011206)
first_phys_pit = ownerParagraphs().begin();
@ -709,10 +709,10 @@ void LyXText::redoParagraphs(LyXCursor const & cur,
}
if (prevrit != rows().end()) {
setHeightOfRow(prevrit);
const_cast<LyXText *>(this)->postPaint(y - prevrit->height());
postPaint(y - prevrit->height());
} else {
setHeightOfRow(rows().begin());
const_cast<LyXText *>(this)->postPaint(0);
postPaint(0);
}
if (tmprit != rows().end())
setHeightOfRow(tmprit);