From 42809bbcbaefa9834d2bb82c33cfeeaf8e26a0e5 Mon Sep 17 00:00:00 2001 From: Rafael Teixeira Date: Thu, 21 Nov 2024 12:10:16 -0300 Subject: [PATCH] Update test dependencies Small C#13 modification --- Directory.Packages.props | 4 ++-- SvgNet/ImplementedGraphics/SVGGraphics.cs | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index cc59784..f9c7715 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,9 +5,9 @@ $(NoWarn);NU1507 - + - + diff --git a/SvgNet/ImplementedGraphics/SVGGraphics.cs b/SvgNet/ImplementedGraphics/SVGGraphics.cs index beeeb5c..53265a3 100644 --- a/SvgNet/ImplementedGraphics/SVGGraphics.cs +++ b/SvgNet/ImplementedGraphics/SVGGraphics.cs @@ -140,7 +140,7 @@ public SvgGraphics(Color backgroundColor) { public Point RenderingOrigin { get => throw new SvgGdiNotImplementedException("get_RenderingOrigin"); set { } } public SmoothingMode SmoothingMode { - get => _smoothingMode; + get; set { switch (value) { case SmoothingMode.Invalid: @@ -160,9 +160,9 @@ public SmoothingMode SmoothingMode { default: _cur.Style.Set("shape-rendering", "auto"); break; } - _smoothingMode = value; + field = value; } - } + } = SmoothingMode.Invalid; /// /// Get is not implemented (throws an exception). @@ -1384,8 +1384,6 @@ public void SetClip(RectangleF rect) { private readonly MatrixStack _transforms; private SvgStyledTransformedElement _cur; - private SmoothingMode _smoothingMode = SmoothingMode.Invalid; - private static void AddHatchBrushDetails(SvgPatternElement patty, SvgColor col, HatchStyle hs) { SvgStyledTransformedElement l1 = null; SvgStyledTransformedElement l2 = null;