diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-06-20 18:15:08 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-06-20 20:52:13 +0200 |
commit | b0c2e580a1c5b055295d303ebb9c9e905ab4890c (patch) | |
tree | 135becb68cc5850232a2c224c7080fe842ea1ce8 /svgio/inc/svgnode.hxx | |
parent | 862cdd148d5c6f9563f8a9b11f7559cd022c9c4a (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio/inc/svgnode.hxx')
-rw-r--r-- | svgio/inc/svgnode.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
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<bool>(mpLocalCssStyle); } }; class Visitor |