summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-03-10 00:00:32 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-03-10 08:06:34 +0000
commitfb33451a27d8668bc14f5bcfd6ea742fc4c5b84c (patch)
treef047145b0340dcc80c0fa371c86655e270b5b3bb
parent60b1c95cc47831246f097ee13dda8bcd71c57eb4 (diff)
tdf#97539: SVGIO: iterate over parent's clippaths
Change-Id: Iadb335bf5b328fa3fd9683da5433c299e62afa8e Reviewed-on: https://gerrit.libreoffice.org/23106 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 33556eff785a..f3446107ab55 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1146,10 +1146,11 @@ namespace svgio
}
const SvgClipPathNode* mpClip = accessClipPathXLink();
- if(mpClip)
+ while(mpClip)
{
// #i124852# transform may be needed when userSpaceOnUse
mpClip->apply(aSource, pTransform);
+ mpClip = mpClip->getSvgStyleAttributes()->accessClipPathXLink();
}
if(!aSource.empty()) // test again, applied clipPath may have lead to empty geometry