Skip to content

Commit 860e7e6

Browse files
authored
Merge pull request #31 from VisualMelon/FixDashOffset
FixDashOffset (#30)
2 parents e6900ee + 05b6877 commit 860e7e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/OxyPlot.Avalonia/CanvasRenderContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@ private void SetStroke(
845845

846846
if (dashArray != null)
847847
{
848-
shape.StrokeDashArray = new global::Avalonia.Collections.AvaloniaList<double>(dashArray.Select(dash => dash + dashOffset));
848+
shape.StrokeDashArray = new global::Avalonia.Collections.AvaloniaList<double>(dashArray);
849+
shape.StrokeDashOffset = dashOffset;
849850
}
850851
}
851852
}

0 commit comments

Comments
 (0)