diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-02-17 00:25:15 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-17 07:05:10 +0000 |
commit | 7b7ffedfa6357b902a5e354d986dac39a3b2f462 (patch) | |
tree | 346adc5f35fde80079c2fa0834ce27ffd831b74f /svgio/source | |
parent | dc9ec9f359ddc91a3aedbe38e6079b0555fb03f9 (diff) |
SVGIO: tdf#97539: clip-path elements might contain...
reference to other clip-paths
Change-Id: I0c426c892da2478293b78ea93db087d781275896
Reviewed-on: https://gerrit.libreoffice.org/22411
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 698f7e8ccd69..bf4f057480fd 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -2648,6 +2648,23 @@ namespace svgio return nullptr; } + OUString SvgStyleAttributes::getClipPathXLink() const + { + if(!maClipPathXLink.isEmpty()) + { + return maClipPathXLink; + } + + const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle(); + + if(pSvgStyleAttributes) + { + return pSvgStyleAttributes->getClipPathXLink(); + } + + return OUString(); + } + OUString SvgStyleAttributes::getMarkerStartXLink() const { if(!maMarkerStartXLink.isEmpty()) |