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>
This commit is contained in:
committed by
Noel Grandin
parent
60b1c95cc4
commit
fb33451a27
@@ -1146,10 +1146,11 @@ namespace svgio
|
|||||||
}
|
}
|
||||||
|
|
||||||
const SvgClipPathNode* mpClip = accessClipPathXLink();
|
const SvgClipPathNode* mpClip = accessClipPathXLink();
|
||||||
if(mpClip)
|
while(mpClip)
|
||||||
{
|
{
|
||||||
// #i124852# transform may be needed when userSpaceOnUse
|
// #i124852# transform may be needed when userSpaceOnUse
|
||||||
mpClip->apply(aSource, pTransform);
|
mpClip->apply(aSource, pTransform);
|
||||||
|
mpClip = mpClip->getSvgStyleAttributes()->accessClipPathXLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!aSource.empty()) // test again, applied clipPath may have lead to empty geometry
|
if(!aSource.empty()) // test again, applied clipPath may have lead to empty geometry
|
||||||
|
Reference in New Issue
Block a user