summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport/data
diff options
context:
space:
mode:
authorJonathan Clark <jonathan@libreoffice.org>2024-12-11 06:14:32 -0700
committerJonathan Clark <jonathan@libreoffice.org>2024-12-11 16:47:51 +0100
commitc697c36d4ef330b4cbf8c6bbeb4f893a3ea4c666 (patch)
treec59b6efe9dca111a3b0426585a155f91eb483942 /sw/qa/extras/odfexport/data
parentfdb13df0cb759e65e48bb65b1513e8add429d4d6 (diff)
crashtesting: fix assert while parsing tdf94588-1.odt
Some ODF parsing code uses relative indices into XMLPropertyMapEntry arrays to enumerate related attributes. This change moves some recently-added paragraph property entries to the end of the respective array, fixing an assertion caused by accessing unexpected attributes via these hard-coded relative indices. Problem since: commit 7e4f4a0ccd3c56093dec44c7dcdd14c8b34623c3 tdf#163913 Implement font-relative margins Change-Id: Ia2671372f0152e4efb98bd25b390638e4458a1b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178318 Tested-by: Jenkins Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/odfexport/data')
-rw-r--r--sw/qa/extras/odfexport/data/tdf163913.fodt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf163913.fodt b/sw/qa/extras/odfexport/data/tdf163913.fodt
index a0e88fe0379d..a84af1dcb1a2 100644
--- a/sw/qa/extras/odfexport/data/tdf163913.fodt
+++ b/sw/qa/extras/odfexport/data/tdf163913.fodt
@@ -86,7 +86,7 @@
<style:paragraph-properties fo:margin-left="3in" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
- <style:paragraph-properties loext:margin="6em" loext:margin-left="6em" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
+ <style:paragraph-properties loext:margin-left="6em" fo:margin-right="0in" fo:text-indent="0in" style:auto-text-indent="false"/>
</style:style>
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-left="0in" fo:margin-right="3in" fo:text-indent="0in" style:auto-text-indent="false"/>
@@ -128,4 +128,4 @@
<text:p text:style-name="P4">6em loext:<text:span text:style-name="T1">margin-right</text:span></text:p>
</office:text>
</office:body>
-</office:document> \ No newline at end of file
+</office:document>