diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs index 3abf8d2627553438be218390160e513ecf4c77fd..2a06a8fc03772aaa1cd954b7cf8854cb1a2b8274 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs @@ -439,9 +439,9 @@ internal override PathGeometryData GetPathGeometryData() else { ctx.BeginFigure(rect.TopLeft, true /* is filled */, true /* is closed */); - ctx.LineTo(Rect.TopRight, true /* is stroked */, false /* is smooth join */); - ctx.LineTo(Rect.BottomRight, true /* is stroked */, false /* is smooth join */); - ctx.LineTo(Rect.BottomLeft, true /* is stroked */, false /* is smooth join */); + ctx.LineTo(rect.TopRight, true /* is stroked */, false /* is smooth join */); + ctx.LineTo(rect.BottomRight, true /* is stroked */, false /* is smooth join */); + ctx.LineTo(rect.BottomLeft, true /* is stroked */, false /* is smooth join */); } ctx.Close();