Skip to content

Commit 6271731

Browse files
authored
Merge pull request #57 from avantBentlyNevada/avant/missingStrokeArray
changed code to not convert double to int
2 parents fe42384 + 9959c17 commit 6271731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SVGImage/SVG/SVGRender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private GeometryDrawing NewDrawingItem(Shape shape, Geometry geometry)
132132
item.Pen.DashCap = PenLineCap.Flat;
133133
DashStyle ds = new DashStyle();
134134
double scale = 1 / stroke.Width;
135-
foreach (int dash in stroke.StrokeArray) ds.Dashes.Add(dash * scale);
135+
foreach (var dash in stroke.StrokeArray) ds.Dashes.Add(dash * scale);
136136
item.Pen.DashStyle = ds;
137137
}
138138
switch (stroke.LineCap)

0 commit comments

Comments
 (0)