summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport/data
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-07-14 19:50:18 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-07-16 18:48:46 +0200
commit86c0f58b6f9f392865196606173d1b98a6897f32 (patch)
tree740c02474529d6a4c7cb4b52e234068c1b28c227 /sw/qa/extras/odfexport/data
parent4461e14d08c7d1c1c43b136a5a8e3acb868c0b51 (diff)
tdf#92796 ODF import: remove unused bitmap fills
With CWS impress64 a partial fix for this was implemented to drop unreferenced named items including all non-color fills after ODF import, but this is only done in sd so move the code that does that to svx and call it from sc and sw as well. Implement some UNO interface for this, it's at least better than a magic string, and not obvious how a better solution would look like since it's known only at the end of the import if a bitmap is used or not. Another problem: when the Area tab is used to change to a different kind of fill, the items with the details for the previous fill aren't cleared, and so they are written to ODF files. Hence bitmaps in the file can be referenced even if they aren't actually used, and bloat up the files. Fix this by dropping all unused draw:fill-image-name attributes in ODF import. Also do the same for Gradient and Hatch fills; Transparency gradients can be combined with anything so leave them as they are. Change-Id: I0b591fd9f963d974d0c3e7208b99621ad61dd93c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118950 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/qa/extras/odfexport/data')
-rw-r--r--sw/qa/extras/odfexport/data/fillbitmap3.odtbin0 -> 10748 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/fillbitmap3.odt b/sw/qa/extras/odfexport/data/fillbitmap3.odt
new file mode 100644
index 000000000000..90308a5ec433
--- /dev/null
+++ b/sw/qa/extras/odfexport/data/fillbitmap3.odt
Binary files differ