sw: SwLinePortion::Move() should be const
Change-Id: I79938773034fbe708ba867960c9effecb2e24a59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158766
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/sw/source/core/text/porlin.cxx b/sw/source/core/text/porlin.cxx
index 4421f107..fdd0ffb 100644
--- a/sw/source/core/text/porlin.cxx
+++ b/sw/source/core/text/porlin.cxx
@@ -269,7 +269,7 @@ bool SwLinePortion::Format( SwTextFormatInfo &rInf )
void SwLinePortion::FormatEOL( SwTextFormatInfo & )
{ }
void SwLinePortion::Move( SwTextPaintInfo &rInf )
void SwLinePortion::Move(SwTextPaintInfo & rInf) const
{
bool bB2T = rInf.GetDirection() == DIR_BOTTOM2TOP;
const bool bFrameDir = rInf.GetTextFrame()->IsRightToLeft();
@@ -300,7 +300,7 @@ void SwLinePortion::Move( SwTextPaintInfo &rInf )
else
rInf.X( rInf.X() + PrtWidth() );
}
if( IsMultiPortion() && static_cast<SwMultiPortion*>(this)->HasTabulator() )
if (IsMultiPortion() && static_cast<SwMultiPortion const*>(this)->HasTabulator())
rInf.IncSpaceIdx();
rInf.SetIdx( rInf.GetIdx() + GetLen() );
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx
index 5ce25a3..8a43d1c 100644
--- a/sw/source/core/text/porlin.hxx
+++ b/sw/source/core/text/porlin.hxx
@@ -160,7 +160,7 @@ public:
virtual bool Format( SwTextFormatInfo &rInf );
// Is called for the line's last portion
virtual void FormatEOL( SwTextFormatInfo &rInf );
void Move( SwTextPaintInfo &rInf );
void Move(SwTextPaintInfo & rInf) const;
// For SwTextSlot
virtual bool GetExpText( const SwTextSizeInfo &rInf, OUString &rText ) const;