summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-01-27 15:04:33 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-02-01 08:41:21 +0000
commit7ab51def766ad6bfdcf5111e7b751bbc2bbf1d73 (patch)
tree16e58aaf7336ca8c56fbd9bdd729ab4a1c379dae /filter/source
parenta262ee4c4a682f844ef380d5e843be1b3ec78c98 (diff)
sw: implement "Theme" property for the XDrawPage in Writer
Change-Id: I8eed04f0ccb2e626a648abcaecd957b6f62c39d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146226 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/svg/svgexport.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 55e4be02052b..c27481baf79b 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -935,10 +935,14 @@ bool SVGFilter::implExportDocument()
// #i124608#
mbExportShapeSelection = mbSinglePage && maShapeSelection.is() && maShapeSelection->getCount();
- if(xDefaultPagePropertySet.is())
- {
- xDefaultPagePropertySet->getPropertyValue( "Width" ) >>= nDocWidth;
- xDefaultPagePropertySet->getPropertyValue( "Height" ) >>= nDocHeight;
+ if (xDefaultPagePropertySet.is())
+ {
+ sal_Int32 nWidth = 0;
+ sal_Int32 nHeight = 0;
+ if (xDefaultPagePropertySet->getPropertyValue("Width") >>= nWidth)
+ nDocWidth = nWidth;
+ if (xDefaultPagePropertySet->getPropertyValue("Height") >>= nHeight)
+ nDocHeight = nHeight;
}
if(mbExportShapeSelection)