[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 2 00:24:18 UTC 2018
svx/source/items/numfmtsh.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 52cb73911e661fb636085337374e09845f07783b
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Tue Oct 2 00:40:34 2018 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Tue Oct 2 02:23:56 2018 +0200
Omit deprecated old currency entries for ALL category unless used
These €0 instead of [$€-407]0 and CCC switching with system
instead of [$EUR]
They can't even be imported anymore since binfilter is gone, but
still could be manually entered. Just don't offer that nonsense.
Change-Id: I193eb3a864e192d4d420ac5178bf03296d697761
Reviewed-on: https://gerrit.libreoffice.org/61224
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx
index 673ed349e4a3..e99e6ec9712c 100644
--- a/svx/source/items/numfmtsh.cxx
+++ b/svx/source/items/numfmtsh.cxx
@@ -773,6 +773,11 @@ short SvxNumberFormatShell::FillEListWithSysCurrencys( std::vector<OUString>& rL
{
nNFEntry=pFormatter->GetFormatIndex(static_cast<NfIndexTableOffset>(nIndex),eCurLanguage);
+ if (nCurCategory == SvNumFormatType::ALL && nNFEntry != nCurFormatKey)
+ // Deprecated old currency entries, for ALL add only if used as
+ // current format key.
+ continue;
+
const SvNumberformat* pNumEntry = pFormatter->GetEntry(nNFEntry);
if(pNumEntry==nullptr) continue;
More information about the Libreoffice-commits
mailing list