mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +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>
|
2003-06-04 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||||
|
|
||||||
* ParagraphList.h: remove last remnants of NO_STD_LIST
|
* ParagraphList.h: remove last remnants of NO_STD_LIST
|
||||||
|
@ -672,7 +672,7 @@ void LyXText::redoParagraphs(LyXCursor const & cur,
|
|||||||
if (tmprit == rows().begin()) {
|
if (tmprit == rows().begin()) {
|
||||||
// A trick/hack for UNDO.
|
// A trick/hack for UNDO.
|
||||||
// This is needed because in an UNDO/REDO we could have
|
// 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.
|
// the row is NOT my really first par anymore.
|
||||||
// Got it Lars ;) (Jug 20011206)
|
// Got it Lars ;) (Jug 20011206)
|
||||||
first_phys_pit = ownerParagraphs().begin();
|
first_phys_pit = ownerParagraphs().begin();
|
||||||
@ -709,10 +709,10 @@ void LyXText::redoParagraphs(LyXCursor const & cur,
|
|||||||
}
|
}
|
||||||
if (prevrit != rows().end()) {
|
if (prevrit != rows().end()) {
|
||||||
setHeightOfRow(prevrit);
|
setHeightOfRow(prevrit);
|
||||||
const_cast<LyXText *>(this)->postPaint(y - prevrit->height());
|
postPaint(y - prevrit->height());
|
||||||
} else {
|
} else {
|
||||||
setHeightOfRow(rows().begin());
|
setHeightOfRow(rows().begin());
|
||||||
const_cast<LyXText *>(this)->postPaint(0);
|
postPaint(0);
|
||||||
}
|
}
|
||||||
if (tmprit != rows().end())
|
if (tmprit != rows().end())
|
||||||
setHeightOfRow(tmprit);
|
setHeightOfRow(tmprit);
|
||||||
|
Loading…
Reference in New Issue
Block a user