[Libreoffice-commits] .: sc/source
Noel Power
noelp at kemper.freedesktop.org
Wed Jun 27 04:20:56 PDT 2012
sc/source/ui/view/output2.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit ce255c2e841d6a3e0a6664834a2931f2353ff249
Author: Noel Power <noel.power at novell.com>
Date: Wed Jun 27 12:17:43 2012 +0100
tweak ScDrawStringsVars::RepeatToFill, us String::Expand instead of loop
Change-Id: I74cfa5813f7df526794cea3cdeaf26fc5f1820ba
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 4e0edff..4f002fd 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();
}
More information about the Libreoffice-commits
mailing list