summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-01-09 18:39:26 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2016-02-14 01:56:42 +0000
commit654f6ff28d7a148950b48ed8905d8f13a015a5b5 (patch)
tree09b956a3224c1b12d997ce498b95252085448657 /sw/qa/extras/ooxmlimport/ooxmlimport.cxx
parentdab89f3b122259d4655b50ce0f0e31e9b68f348c (diff)
tdf#92157: allow both dimensions of a graphic to be 0
Commit ca80f73 made it possible for one of dimensions to be zero. This commit goes further, allowing opening real-life documents with graphics having both width and height equal to 0. Thanks to libreoffice@arbruijn.dds.nl for debugging and initial patch! Change-Id: I96a13b776adfd9fe46fc2c7691eb7904400c20a1 Reviewed-on: https://gerrit.libreoffice.org/21287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'sw/qa/extras/ooxmlimport/ooxmlimport.cxx')
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index df0f695a8714..57507ea2c98e 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -2980,6 +2980,11 @@ DECLARE_OOXMLIMPORT_TEST(testTdf95775, "tdf95775.docx")
// This must not fail in layout
}
+DECLARE_OOXMLIMPORT_TEST(testTdf92157, "tdf92157.docx")
+{
+ // A graphic with dimensions 0,0 should not fail on load
+}
+
DECLARE_OOXMLIMPORT_TEST(testTdf60351, "tdf60351.docx")
{
// Get the first image in the document and check its contour polygon.