BerndK / SvgToXaml

Smart Tool to view svg-files and convert them to xaml for use in .NET
Other
886 stars 164 forks source link

SvgConverter/ConverterLogic.GetClipElement is using global XPath expr instead of local #1

Closed Arlorean closed 8 years ago

Arlorean commented 8 years ago

ConverterLogic.cs:614:

        var clipElement = drawingGroupElement.XPathSelectElement("//defns:DrawingGroup.ClipGeometry", _nsManager);

This should start with "." otherwise it's searching for ClipGeometry in the entire document not relative to the current DrawingGroup.

        var clipElement = drawingGroupElement.XPathSelectElement(".//defns:DrawingGroup.ClipGeometry", _nsManager);
BerndK commented 8 years ago

fixed, thanks for your comment Arlorean.