diff --git a/src/Avalonia.Svg/AvaloniaPicture.cs b/src/Avalonia.Svg/AvaloniaPicture.cs index d9e7bc16..8999585a 100644 --- a/src/Avalonia.Svg/AvaloniaPicture.cs +++ b/src/Avalonia.Svg/AvaloniaPicture.cs @@ -152,8 +152,8 @@ private static void RecordCommand(CanvasCommand canvasCommand, List } case SetMatrixCanvasCommand setMatrixCanvasCommand: { - var matrix = setMatrixCanvasCommand.Matrix.ToMatrix(); - commands.Add(new SetTransformDrawCommand(matrix)); + var matrix = setMatrixCanvasCommand.DeltaMatrix.ToMatrix(); + commands.Add(new PushTransformDrawCommand(matrix)); break; } case SaveLayerCanvasCommand saveLayerCanvasCommand: @@ -267,9 +267,9 @@ private void Draw(AM.DrawingContext context, DrawCommand command, Stack