diff options
Diffstat (limited to 'xmloff/source/style/xmlnumfi.cxx')
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index fb126139fa8e..db08434b6e7a 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -1795,9 +1795,9 @@ void SvXMLNumFormatContext::AddNumber( const SvXMLNumberInfo& rInfo ) // (there always has to be a digit before the leftmost embedded text) xub_StrLen nAddCount = (xub_StrLen)nLastFormatPos + 1 - nZeroPos; - String aDigitStr; - aDigitStr.Fill( nAddCount, (sal_Unicode)'#' ); - aNumStr.Insert( aDigitStr, 0 ); + OUStringBuffer aDigitStr; + comphelper::string::padToLength(aDigitStr, nAddCount, (sal_Unicode)'#'); + aNumStr.Insert(aDigitStr.makeStringAndClear(), 0); nZeroPos = nZeroPos + nAddCount; } |