diff options
Diffstat (limited to 'sw/source/core/bastyp/calc.cxx')
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 9677a9b0f650..b19c2ccc1b9d 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -39,6 +39,7 @@ #include <editeng/langitem.hxx> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <unotools/localedatawrapper.hxx> #include <unotools/charclass.hxx> #include <editeng/unolingu.hxx> @@ -272,8 +273,7 @@ SwCalc::SwCalc( SwDoc& rD ) pLclData = new LocaleDataWrapper( xMSF, aLocale ); } - sCurrSym = pLclData->getCurrSymbol(); - sCurrSym.EraseLeadingChars().EraseTrailingChars(); + sCurrSym = comphelper::string::strip(pLclData->getCurrSymbol(), ' '); sCurrSym = pCharClass->lowercase( sCurrSym ); static sal_Char const |