Skip to content

Commit

Permalink
Fixed ClipGeometry issue, fullpath to info
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndK committed Jun 6, 2024
1 parent 2ce07a3 commit 87e6fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SvgConverter/CmdLineTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion SvgConverter/ConverterLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 87e6fcc

Please sign in to comment.