From ec59929f34563155c66af5347c8e72cfa1885963 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 5 Jun 2003 11:34:56 +0000 Subject: [PATCH] remove unneeded const_casts git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7108 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/text2.C | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3354288b38..cfffdcbc30 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ + +2003-06-05 André Pönitz + + * text2.C (redoParagraphs): remove two const_cast<> + 2003-06-04 Lars Gullik Bjønnes * ParagraphList.h: remove last remnants of NO_STD_LIST diff --git a/src/text2.C b/src/text2.C index 4fe6b16612..afa44ca91d 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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(this)->postPaint(y - prevrit->height()); + postPaint(y - prevrit->height()); } else { setHeightOfRow(rows().begin()); - const_cast(this)->postPaint(0); + postPaint(0); } if (tmprit != rows().end()) setHeightOfRow(tmprit); -- 2.39.2