diff options
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index eb360c5b0ad6..c43e124bbadd 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -1718,12 +1718,15 @@ void SvNumberFormatter::GetInputLineString(const double& fOutNumber, bPrecChanged = true; } - sal_uInt32 nKey = GetEditFormat( fOutNumber, nRealKey, eType, pFormat, - bForceSystemLocale ? LANGUAGE_SYSTEM : LANGUAGE_DONTKNOW); // if bFiltering true keep the nRealKey format - if ( nKey != nRealKey && !bFiltering ) + if (!bFiltering) { - pFormat = GetFormatEntry( nKey ); + sal_uInt32 nKey = GetEditFormat( fOutNumber, nRealKey, eType, pFormat, + bForceSystemLocale ? LANGUAGE_SYSTEM : LANGUAGE_DONTKNOW); + if (nKey != nRealKey) + { + pFormat = GetFormatEntry( nKey ); + } } assert(pFormat); if (pFormat) |