diff options
author | Christina Rossmanith <ChrRossmanith@web.de> | 2011-11-08 08:42:27 +0100 |
---|---|---|
committer | Christina Rossmanith <ChrRossmanith@web.de> | 2012-01-05 22:08:58 +0100 |
commit | 62d86ff5501a924528b9b2794b18af16b3ddcbf0 (patch) | |
tree | cf8df6c58da301dade67817b6b856c032f1c62e0 /editeng | |
parent | 25e84ee95954a28d9a6a1b346e6673a9a6de71cc (diff) |
Remove Fill() usage
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 9c2a80033390..c964aeb4a062 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -77,6 +77,8 @@ #include <i18npool/mslangid.hxx> #include <comphelper/processfactory.hxx> +#include <rtl/ustrbuf.hxx> +#include <comphelper/string.hxx> using ::rtl::OUString; using namespace ::com::sun::star; @@ -3289,12 +3291,11 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta aTmpFont.SetEscapement( 0 ); aTmpFont.SetPropr( 100 ); aTmpFont.SetPhysFont( pOutDev ); - String aBlanks; - aBlanks.Fill( nTextLen, ' ' ); + rtl::OUStringBuffer aBlanks = comphelper::string::padToLength( aBlanks, (sal_Int32) nTextLen, ' ' ); Point aUnderlinePos( aOutPos ); if ( nOrientation ) aUnderlinePos = lcl_ImplCalcRotatedPos( aTmpPos, aOrigin, nSin, nCos ); - pOutDev->DrawStretchText( aUnderlinePos, aSz.Width(), aBlanks, 0, nTextLen ); + pOutDev->DrawStretchText( aUnderlinePos, aSz.Width(), aBlanks.makeStringAndClear(), 0, nTextLen ); aTmpFont.SetUnderline( UNDERLINE_NONE ); if ( !nOrientation ) |