diff options
author | László Németh <nemeth@numbertext.org> | 2018-12-12 12:58:07 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2018-12-17 15:20:02 +0100 |
commit | 75656a933e7a503f114aa64c67397cb375c9dbe8 (patch) | |
tree | 2f41701a909feefb6fcbb615fb723db12decbf02 /sw/qa/extras/odfexport/odfexport.cxx | |
parent | e25f270d45e78399cbbf4d66d4d02af064ad4f79 (diff) |
tdf#99631 DOCX import: set 1:1 scale in embedded XLSX
based on the OLE object size, instead of applying
different scales for the bad (non-imported) VisibleArea
settings.
Change-Id: I3f246b779afd145fe260af83173c1944df21fb1a
Reviewed-on: https://gerrit.libreoffice.org/65244
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras/odfexport/odfexport.cxx')
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 6bc9b8fa006b..c8468eb90cdd 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -2123,6 +2123,15 @@ DECLARE_ODFEXPORT_TEST(tdf118502, "tdf118502.odt") CPPUNIT_ASSERT(xReplacementGraphic.is()); } +DECLARE_ODFEXPORT_TEST(tdf99631, "tdf99631.docx") +{ + // File asserting while saving in LO. + xmlDocPtr pXmlDoc = parseExport("Object 1/settings.xml"); + if (!pXmlDoc) + return; + assertXPathContent(pXmlDoc, "//config:config-item[@config:name='VisibleAreaWidth']", "4515"); + assertXPathContent(pXmlDoc, "//config:config-item[@config:name='VisibleAreaHeight']", "903"); +} #endif CPPUNIT_PLUGIN_IMPLEMENT(); |