From b0c2e580a1c5b055295d303ebb9c9e905ab4890c Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 20 Jun 2023 18:15:08 +0200 Subject: tdf#155814: only check parent style when it has a local css style This also fixes the problem for filters and mask, since they are call from add_postProcess Adapt some tests to the new xml output. Visually nothing has changed Change-Id: I65d2491409019f4cd0b1113a9a7931fc602c57b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153355 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- svgio/inc/svgnode.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'svgio/inc/svgnode.hxx') diff --git a/svgio/inc/svgnode.hxx b/svgio/inc/svgnode.hxx index 4bdbd3046d75..f2eb0fcb1b6e 100644 --- a/svgio/inc/svgnode.hxx +++ b/svgio/inc/svgnode.hxx @@ -180,6 +180,9 @@ namespace svgio::svgreader /// alternative parent void setAlternativeParent(const SvgNode* pAlternativeParent = nullptr) { mpAlternativeParent = pAlternativeParent; } + + /// Check if there is a local css style + bool hasLocalCssStyle() { return static_cast(mpLocalCssStyle); } }; class Visitor -- cgit