managed-commons / SvgNet

Fork of the SVG library for .NET that makes a GdiGraphics that "draws" on a SVG model
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

Transforms ignored in DrawLines method #17

Closed Keex0r closed 6 years ago

Keex0r commented 6 years ago

Hello, I noticed that GDI transformations (in my case a Translation) were ignored in the DrawLines method.

The culprit was line 1846 of SVGGraphics.cs: old: pl.Transform = new SvgTransformList(_transforms.Top.Clone()); fix: pl.Transform = new SvgTransformList(_transforms.Result.Clone());

It would be nice if you could check if the fix is correct. I basically just adjusted it to be the same as Transformation handling in other methods.

Cheers Jens

monoman commented 6 years ago

Fixed on version 1.0.8 released to Nuget