summaryrefslogtreecommitdiff
path: root/svx/qa/unit/data
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-01-04 16:28:03 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-01-04 19:02:03 +0100
commit77d2bbaa18e0be5347d7bd7167b245264789e0a4 (patch)
tree26f3f2f5ecb92105b79c9d2e9e3bb9ebf8a9eb79 /svx/qa/unit/data
parent8e78d0f335240a5ca42d53ab2f1f4e0c652ade88 (diff)
sc export chart as graphic: handle PDF
The context menu for Calc charts would call into GraphicFilter::ExportGraphic(), which has explicit code for e.g. SVG, but not for PDF. The graphic exporter to PDF is only meant to work with images backed with PDF data, not with all shapes. Fix the problem by explicitly handling PDF in GraphicHelper::SaveShapeAsGraphic() in svx/, and invoking the normal PDF export in that case. Continue to fall back to XGraphicExportFilter for other formats. This requires passing down the current document from sc/. Change-Id: Ia5f78bffa1d26989bb0ad3ed265b922e609f076f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127969 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svx/qa/unit/data')
-rw-r--r--svx/qa/unit/data/chart.odsbin0 -> 19734 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/svx/qa/unit/data/chart.ods b/svx/qa/unit/data/chart.ods
new file mode 100644
index 000000000000..d9e9bdf18c1e
--- /dev/null
+++ b/svx/qa/unit/data/chart.ods
Binary files differ