summaryrefslogtreecommitdiff
path: root/sd/qa
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-12-04 14:09:25 +0100
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-12-05 09:05:46 +0100
commit293d03e6803be57af7a3948e358e7ed9f8545c13 (patch)
tree42176cb45e7ac70b958c6189ff2e2aaa16481c16 /sd/qa
parent9b4cbd876b5eba07bfb00bc4eeef1b179b37fbb6 (diff)
tdf#160487 - PPTX export: fix "Fit height to text"
attribute of drawing objects (placeholders) Export spAutoFit attribute correctly to ooxml. Change-Id: I57e5b21bd6c407bdb5d1b36b3c3674249fbd2f59 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177798 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'sd/qa')
-rw-r--r--sd/qa/unit/data/pptx/tdf160487.pptxbin0 -> 9332 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml4.cxx10
2 files changed, 10 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf160487.pptx b/sd/qa/unit/data/pptx/tdf160487.pptx
new file mode 100644
index 000000000000..ac0f3fb553d1
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf160487.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx
index 9513b3ae5e61..55f1b5d5de2d 100644
--- a/sd/qa/unit/export-tests-ooxml4.cxx
+++ b/sd/qa/unit/export-tests-ooxml4.cxx
@@ -1263,6 +1263,16 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testTdf163483_export_math_fallback)
"id", cNvPr_id);
}
+CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testPlaceHolderFitHeightToText)
+{
+ createSdImpressDoc("pptx/tdf160487.pptx");
+ saveAndReload(u"Impress Office Open XML"_ustr);
+ uno::Reference<beans::XPropertySet> xShape(getShapeFromPage(1, 0));
+ bool bTextAutoGrowHeight = false;
+ xShape->getPropertyValue(u"TextAutoGrowHeight"_ustr) >>= bTextAutoGrowHeight;
+ CPPUNIT_ASSERT_MESSAGE("PlaceHolder Fit height to text should be true.", bTextAutoGrowHeight);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */