summaryrefslogtreecommitdiffstats
path: root/xmloff/source/style/xmlnumfe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/xmlnumfe.cxx')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index aef97f500b51..d2c1782890fa 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -1396,12 +1396,12 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
// string for decimal replacement
// has to be taken from nPrecision
// (positive number even for automatic decimals)
- String sDashStr;
- if ( bDecDashes && nPrecision > 0 )
- sDashStr.Fill( nPrecision, '-' );
+ OUStringBuffer sDashStr;
+ if (bDecDashes && nPrecision > 0)
+ comphelper::string::padToLength(sDashStr, nPrecision, '-');
- WriteNumberElement_Impl( nDecimals, nInteger, sDashStr, bVarDecimals,
- bThousand, nTrailingThousands, aEmbeddedEntries );
+ WriteNumberElement_Impl(nDecimals, nInteger, sDashStr.makeStringAndClear(),
+ bVarDecimals, bThousand, nTrailingThousands, aEmbeddedEntries);
bAnyContent = sal_True;
}
break;