diff options
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 644ee1ce30a5..bac8fdbd48d0 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1149,7 +1149,7 @@ sal_uLong TextEngine::GetTextHeight() const DBG_ASSERT( GetUpdateMode(), "GetTextHeight: GetUpdateMode()" ); if ( !IsFormatted() && !IsFormatting() ) - ((TextEngine*)this)->FormatAndUpdate(); + const_cast<TextEngine*>(this)->FormatAndUpdate(); return mnCurTextHeight; } @@ -1159,7 +1159,7 @@ sal_uLong TextEngine::GetTextHeight( sal_uLong nParagraph ) const DBG_ASSERT( GetUpdateMode(), "GetTextHeight: GetUpdateMode()" ); if ( !IsFormatted() && !IsFormatting() ) - ((TextEngine*)this)->FormatAndUpdate(); + const_cast<TextEngine*>(this)->FormatAndUpdate(); return CalcParaHeight( nParagraph ); } |