Unverified Commit b07559d6 authored by mrbean-bremen's avatar mrbean-bremen
Browse files

Fixed copy and paste error in unit rendering type

- found by @Seairth
- fixes #108
parent 7cc144a6
...@@ -174,7 +174,7 @@ namespace Svg ...@@ -174,7 +174,7 @@ namespace Svg
{ {
var size = (this.Parent == null ? renderer.GetBoundable().Bounds.Size : GetDimensions()); var size = (this.Parent == null ? renderer.GetBoundable().Bounds.Size : GetDimensions());
var clip = new RectangleF(this.X.ToDeviceValue(renderer, UnitRenderingType.Horizontal, this), var clip = new RectangleF(this.X.ToDeviceValue(renderer, UnitRenderingType.Horizontal, this),
this.Y.ToDeviceValue(renderer, UnitRenderingType.Horizontal, this), this.Y.ToDeviceValue(renderer, UnitRenderingType.Vertical, this),
size.Width, size.Height); size.Width, size.Height);
renderer.SetClip(new Region(clip), CombineMode.Intersect); renderer.SetClip(new Region(clip), CombineMode.Intersect);
base.Render(renderer); base.Render(renderer);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment