mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
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:
parent
4b14c1d9be
commit
ec59929f34
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user