diff options
author | Justin Luth <justin_luth@sil.org> | 2017-10-14 11:22:10 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2017-10-17 18:35:46 +0200 |
commit | 3a44d7058dd7f7addf21d9292104d7eb73ec9716 (patch) | |
tree | e1713f4e82e2becf59ec46f8b30f1470e9d48040 /writerfilter | |
parent | f61acf7ebb2365d29209310b56c371ccf63f153d (diff) |
tdf#79272 ooxmlimport: support strict dxa tblWidth
This patch is also required for tdf#78508.
ECMA-376-1:2016 indicates that MeasurementOrPercent
is a union of ST_DecimalNumberOrPercent and
ST_UniversalMeasure. For the elements that use
MeasurementOrPercent, that is represented as
1/50 of a percent or in Twips. This patch adds
support for the ST_UniversalMeasure component of
the union.
Change-Id: I1bac30707f118a3d1f0eab3c27f8dcec96470592
Reviewed-on: https://gerrit.libreoffice.org/43384
Tested-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx index bd80f8dc5112..004e16f2eb6b 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx @@ -650,11 +650,7 @@ OOXMLMeasurementOrPercentValue::OOXMLMeasurementOrPercentValue(const char * pVal } else { - // TODO: also allow units. For that, we need to know - // how to represent the number to converter or store - // the value in the type as number + unit and have - // getter with unit specification - mnValue = static_cast<int>(val); + mnValue = OOXMLTwipsMeasureValue(pValue).getInt(); } } |