summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-08-29 11:22:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-29 11:43:50 +0100
commitcbba41823a2e67add2620e4901bf0ead542c2932 (patch)
tree921e608e0b72f88d0acfe48b7953bb4c37205799 /sc
parentRelated: #i113785# add regression test for ligatures (diff)
downloadcore-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.cxx7
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();
}