summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2017-10-14 12:30:43 +0300
committerJustin Luth <justin_luth@sil.org>2017-10-18 07:07:57 +0200
commit246d18520f194a6ccfebe7108666b85d6a5af9fa (patch)
tree8d954cebc5bf24098a6d8f867df4f357e5e4160b /writerfilter
parenta4a182e24d2e3e954831a0a7c70a7299f28950cb (diff)
tdf#109306 ooxmlimport: consider table sizes < 10%
Change-Id: I336d5a498f4f4523e03b1316b7adaca21df4de82 Reviewed-on: https://gerrit.libreoffice.org/43385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
index 004e16f2eb6b..286da4fb040e 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
@@ -643,7 +643,7 @@ OOXMLMeasurementOrPercentValue::OOXMLMeasurementOrPercentValue(const char * pVal
double val = rtl_str_toDouble(pValue); // will ignore the trailing unit
int nLen = strlen(pValue);
- if (nLen > 2 &&
+ if (nLen > 1 &&
pValue[nLen - 1] == '%')
{
mnValue = static_cast<int>(val * 50);