diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 11:22:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 11:43:50 +0100 |
commit | cbba41823a2e67add2620e4901bf0ead542c2932 (patch) | |
tree | 921e608e0b72f88d0acfe48b7953bb4c37205799 /sc | |
parent | Related: #i113785# add regression test for ligatures (diff) | |
download | core-cbba41823a2e67add2620e4901bf0ead542c2932.tar.gz core-cbba41823a2e67add2620e4901bf0ead542c2932.zip |
String::Expand -> string::padToLength
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 956bf686336a..edfdf60e226f 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -65,6 +65,7 @@ #include "fillinfo.hxx" #include <com/sun/star/i18n/DirectionProperty.hpp> +#include <comphelper/string.hxx> #include <boost/ptr_container/ptr_vector.hpp> @@ -566,9 +567,9 @@ void ScDrawStringsVars::RepeatToFill( long colWidth ) return; long nCharsToInsert = aSpaceToFill / charWidth; - String aFill; - aFill.Expand( nCharsToInsert, nChar); - aString.Insert( aFill, nPos); + StringBuffer aFill; + comphelper::string::padToLength(aFill, nCharsToInsert, nChar); + aString.Insert( aFill.makeStringAndClear(), nPos); TextChanged(); } |