From 87e6fcc39012620e759f83257a3900faf11e87d9 Mon Sep 17 00:00:00 2001 From: BerndK Date: Thu, 6 Jun 2024 12:56:48 +0200 Subject: [PATCH] Fixed ClipGeometry issue, fullpath to info --- SvgConverter/CmdLineTarget.cs | 2 +- SvgConverter/ConverterLogic.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SvgConverter/CmdLineTarget.cs b/SvgConverter/CmdLineTarget.cs index 2f6c57d..eb7ad15 100644 --- a/SvgConverter/CmdLineTarget.cs +++ b/SvgConverter/CmdLineTarget.cs @@ -50,7 +50,7 @@ public int BuildDict( }; File.WriteAllText(outFileName, ConverterLogic.SvgDirToXaml(inputdir, resKeyInfo, null, filterPixelsPerDip, handleSubFolders)); - Console.WriteLine("xaml written to: {0}", outFileName); + Console.WriteLine("xaml written to: {0}", Path.GetFullPath(outFileName)); if (buildhtmlfile) { diff --git a/SvgConverter/ConverterLogic.cs b/SvgConverter/ConverterLogic.cs index 933d575..d8e3ee1 100644 --- a/SvgConverter/ConverterLogic.cs +++ b/SvgConverter/ConverterLogic.cs @@ -436,7 +436,7 @@ private static void InlineClipping(XElement drawingElement) var clipElement = GetClipElement(drawingElement, out clipRect); if (clipElement != null && clipElement.Parent.Name.LocalName == "DrawingGroup") { //add Attribute: ClipGeometry="M0,0 V40 H40 V0 H0 Z" this is the description of a rectangle-like Geometry - clipElement.Parent.Add(new XAttribute("ClipGeometry", string.Format(CultureInfo.InvariantCulture, "M{0},{1} V{2} H{3} V{0} H{1} Z", clipRect.Left, clipRect.Top, clipRect.Bottom, clipRect.Right))); + clipElement.Parent.Add(new XAttribute("ClipGeometry", string.Format(CultureInfo.InvariantCulture, "M{0},{1} V{2} H{3} V{1} H{0} Z", clipRect.Left, clipRect.Top, clipRect.Bottom, clipRect.Right))); //delete the old Element clipElement.Remove(); }