summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-12-14 01:08:25 +0100
committerEike Rathke <erack@redhat.com>2022-12-14 01:09:43 +0000
commit0517ef1669dba0e055b8ef3cf09a4b40378e476f (patch)
tree23e17192d6bdfa2e7e7f2bdef591fe385ddc9332 /svl
parentd5986b163276008d2a15a10f7de529d924b60d2f (diff)
It's unnecessary to obtain what's not being used
Change-Id: I3b5a2a8a2b095e77f71629910628ca7fe54aac25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144113 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforlist.cxx11
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)