summaryrefslogtreecommitdiff
path: root/sw/source/core/text/portxt.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-05-23 11:36:15 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-06-08 21:51:30 +0200
commit3337a14a4ffb140a5fe4e5b9fcae87d68e84bd36 (patch)
treee19d4e9425feb79f87e37ed56757ad522b830c59 /sw/source/core/text/portxt.cxx
parentd10f615c2003796a23b69c6a83aebfc6f954c315 (diff)
sw_redlinehide: SwDrawTextInfo conversion in frmpaint.cxx etc.
Change-Id: I64bb3478b11888373d9b5e0c8d4716065a625f6c
Diffstat (limited to 'sw/source/core/text/portxt.cxx')
-rw-r--r--sw/source/core/text/portxt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index 785935e151ec..1bef7cfafab0 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -529,7 +529,7 @@ void SwTextPortion::Paint( const SwTextPaintInfo &rInf ) const
assert(false); // this is some debugging only code
rInf.DrawBackBrush( *this );
const OUString aText(CH_TXT_ATR_SUBST_FIELDEND);
- rInf.DrawText( aText, *this, 0, aText.getLength() );
+ rInf.DrawText(aText, *this, TextFrameIndex(0), TextFrameIndex(aText.getLength()));
}
else if (rInf.OnWin() && TextFrameIndex(1) == rInf.GetLen()
&& CH_TXT_ATR_FIELDSTART == rInf.GetText()[sal_Int32(rInf.GetIdx())])
@@ -537,7 +537,7 @@ void SwTextPortion::Paint( const SwTextPaintInfo &rInf ) const
assert(false); // this is some debugging only code
rInf.DrawBackBrush( *this );
const OUString aText(CH_TXT_ATR_SUBST_FIELDSTART);
- rInf.DrawText( aText, *this, 0, aText.getLength() );
+ rInf.DrawText(aText, *this, TextFrameIndex(0), TextFrameIndex(aText.getLength()));
}
else if( GetLen() )
{
@@ -757,7 +757,7 @@ void SwHolePortion::Paint( const SwTextPaintInfo &rInf ) const
}
const OUString aText( ' ' );
- rInf.DrawText( aText, *this, 0, 1 );
+ rInf.DrawText(aText, *this, TextFrameIndex(0), TextFrameIndex(1));
delete pFontSave;
delete pHoleFont;