diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-03-26 14:13:21 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-03-27 14:33:19 +0100 |
commit | 405e0519725a3edc8a75fc0a4aa05ed5f0dbc255 (patch) | |
tree | 5c16b9b00fe0f4dd003895d4def1149894c4442d /svgio/inc | |
parent | 260428759593c7023a0739f4f8979091e7d9d6f7 (diff) |
tdf#160373: Iterate over all parents to check whether it's a clipPath content
Change-Id: I383ec264e4c88ebcee2ae6a839b762bba8abfc12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165347
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 261985b6936ede212852e806c4b140ea634a5af3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165317
Reviewed-by: Stéphane Guillou <stephane.guillou@libreoffice.org>
Diffstat (limited to 'svgio/inc')
-rw-r--r-- | svgio/inc/svgstyleattributes.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx index bf921f8b1bb0..c5c095462f3d 100644 --- a/svgio/inc/svgstyleattributes.hxx +++ b/svgio/inc/svgstyleattributes.hxx @@ -243,10 +243,6 @@ namespace svgio::svgreader mutable std::vector<sal_uInt16> maResolvingParent; - // defines if this attributes are part of a ClipPath. If yes, - // rough geometry will be created on decomposition by patching - // values for fill, stroke, strokeWidth and others - bool mbIsClipPathContent : 1; // #121221# Defines if evtl. an empty array *is* set bool mbStrokeDasharraySet : 1; @@ -318,6 +314,11 @@ namespace svgio::svgreader SvgStyleAttributes(SvgNode& rOwner); ~SvgStyleAttributes(); + // Check if this attribute is part of a ClipPath. + // If so, rough geometry will be created on decomposition by patching + // values for fill, stroke, strokeWidth and others + bool isClipPathContent() const; + /// fill content bool isFillSet() const; // #i125258# ask if fill is a direct hard attribute (no hierarchy) const basegfx::BColor* getFill() const; |