summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltble.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-01 23:50:23 +0100
committerEike Rathke <erack@redhat.com>2017-12-02 19:23:56 +0100
commitafbd0960f0b8d8b27cc9582279367540cc8aad84 (patch)
tree82395c22a4ba483223d0fd635fd2f360c6ab1d64 /sw/source/filter/xml/xmltble.cxx
parent923ca4efe2095998e3da75c372cd7d716db9abb3 (diff)
Get rid of the css::util::NumberFormat::TEXT abuse as "special" "key"
It is a bit, not a key, which demanded special treatment at all places, and a key with the same value could not be handled at all. Abusing the css::util::NumberFormat::TEXT flag as number format key to signal the "special" meaning, having a number format key equal to that value would had resulted in undesired behaviour. The bit value is 256 and a key 256 means 156 user defined number formats in the default locale, rarely in the wild but can happen. Change-Id: Idfd5b07d524c222df3491d201095ef65ad4a46c9 Reviewed-on: https://gerrit.libreoffice.org/45705 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sw/source/filter/xml/xmltble.cxx')
-rw-r--r--sw/source/filter/xml/xmltble.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index 775bc175eaab..d68d5e06148a 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -822,7 +822,7 @@ void SwXMLExport::ExportTableBox( const SwTableBox& rBox,
Any aAny = xCellPropertySet->getPropertyValue("NumberFormat");
aAny >>= nNumberFormat;
- if (css::util::NumberFormat::TEXT == nNumberFormat)
+ if (static_cast<sal_Int32>(getSwDefaultTextFormat()) == nNumberFormat)
{
// text format
AddAttribute( XML_NAMESPACE_OFFICE,