Skip to content

Commit 0d77ced

Browse files
committed
Fixed problem that svg defs were ignored for a "use" tag.
1 parent 130eaa8 commit 0d77ced

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SvgFileType/SvgFileType.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ private static IEnumerable<SvgElement> PrepareFlatElements(SvgElementCollection
407407
grouped = true;
408408
}
409409

410+
// Dont prepare def lists for a separate rendering.
411+
if (toRender is SvgDefinitionList)
412+
{
413+
continue;
414+
}
415+
410416
var visual = toRender as SvgVisualElement;
411417

412418
if (visual != null)

0 commit comments

Comments
 (0)