diff options
Diffstat (limited to 'svtools/source/control/fmtfield.cxx')
-rw-r--r-- | svtools/source/control/fmtfield.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx index acaaa1e95433..3d543e28ac41 100644 --- a/svtools/source/control/fmtfield.cxx +++ b/svtools/source/control/fmtfield.cxx @@ -44,6 +44,7 @@ #include <unotools/syslocale.hxx> #include <map> #include <rtl/math.hxx> +#include <rtl/ustrbuf.hxx> using namespace ::com::sun::star::lang; using namespace ::com::sun::star::util; @@ -1253,9 +1254,9 @@ void DoubleCurrencyField::UpdateCurrencyFormat() { sNewFormat += aLocaleInfo.getNumDecimalSep(); - XubString sTemp; - sTemp.Fill(nDigits, '0'); - sNewFormat += sTemp; + rtl::OUStringBuffer sTemp; + comphelper::string::padToLength(sTemp, nDigits, '0'); + sNewFormat += sTemp.makeStringAndClear(); } if (getPrependCurrSym()) |