From 61816fdf92c90b2929d3e48dd4e8bd5808d18654 Mon Sep 17 00:00:00 2001 From: Benedikt Schroeder Date: Mon, 11 Jun 2018 14:06:48 +0200 Subject: [PATCH] Relative move command fix --- src/Avalonia.Visuals/Media/PathMarkupParser.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Avalonia.Visuals/Media/PathMarkupParser.cs b/src/Avalonia.Visuals/Media/PathMarkupParser.cs index 0307701e82..c3fcf19148 100644 --- a/src/Avalonia.Visuals/Media/PathMarkupParser.cs +++ b/src/Avalonia.Visuals/Media/PathMarkupParser.cs @@ -232,7 +232,9 @@ namespace Avalonia.Media private void AddMove(CommandToken commandToken) { - var currentPoint = commandToken.ReadPoint(); + var currentPoint = commandToken.IsRelative + ? commandToken.ReadRelativePoint(_currentPoint) + : commandToken.ReadPoint(); _currentPoint = currentPoint;