diff options
author | Noel Power <noel.power@novell.com> | 2012-06-27 12:17:43 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-06-27 12:20:52 +0100 |
commit | ce255c2e841d6a3e0a6664834a2931f2353ff249 (patch) | |
tree | 3af7ecaed5f73b53e2943781613656ccb4d15edc /sc | |
parent | 6013882bdff6265548a1511799611243a9d0e083 (diff) |
tweak ScDrawStringsVars::RepeatToFill, us String::Expand instead of loop
Change-Id: I74cfa5813f7df526794cea3cdeaf26fc5f1820ba
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 4e0edfff086b..4f002fdb1f63 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -566,9 +566,9 @@ void ScDrawStringsVars::RepeatToFill( long colWidth ) return; long nCharsToInsert = aSpaceToFill / charWidth; - for ( int i = 0; i < nCharsToInsert; ++i ) - aString.Insert( nChar, nPos ); - + String aFill; + aFill.Expand( nCharsToInsert, nChar); + aString.Insert( aFill, nPos); TextChanged(); } |