diff options
author | Eike Rathke <erack@redhat.com> | 2019-02-08 20:46:36 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-02-11 12:07:33 +0100 |
commit | 1e66a07e648d1203f5a599d19da1227be008f276 (patch) | |
tree | b53a3599f901de44239a3dcfb1950b6d1f0783b7 /svx/source/items | |
parent | 16b8cb5e1bce0098b253395030b3c8ae9f5ae39a (diff) |
Resolves: tdf#123122 category is just one bit, date+time is two bits set
DATE|TIME != DATE ...
Regression from
commit e85966450b770e1169f113183ce1a9a9f4dcc507
CommitDate: Wed Oct 3 12:08:55 2018 +0200
Related: tdf#119613 tdf#118127 suppress duplicated builtins, rework All cat
Change-Id: If500dbeae00805f04f61586730479901b27d3901
Reviewed-on: https://gerrit.libreoffice.org/67554
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 8e12e3300592438b06b5649deaf84574de5066ba)
Reviewed-on: https://gerrit.libreoffice.org/67575
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 2bf80b4cb33f..e23f27b95026 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -1037,7 +1037,7 @@ short SvxNumberFormatShell::FillEListWithUsD_Impl(std::vector<OUString>& rList, { const SvNumberformat* pNumEntry = it->second; - if (bCategoryMatch && pNumEntry->GetMaskedType() != eCategory) + if (bCategoryMatch && (pNumEntry->GetMaskedType() & eCategory) != eCategory) continue; // for; type does not match category if not ALL const bool bUserDefined = bool(pNumEntry->GetType() & SvNumFormatType::DEFINED); |