From 3dcc811c697f44dd67cb5d9957f5c2699d6d23e0 Mon Sep 17 00:00:00 2001 From: artemiusgreat Date: Sat, 26 Oct 2024 16:18:35 -0400 Subject: [PATCH] Cleanup --- Canvas.Core/Canvas.Core.csproj | 2 +- Canvas.Core/Composers/GroupComposer.cs | 4 ++-- Canvas.Core/Shapes/Shape.cs | 2 +- Canvas.Views.Web/Canvas.Views.Web.csproj | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Canvas.Core/Canvas.Core.csproj b/Canvas.Core/Canvas.Core.csproj index f593424..deb0b2f 100644 --- a/Canvas.Core/Canvas.Core.csproj +++ b/Canvas.Core/Canvas.Core.csproj @@ -5,7 +5,7 @@ disable disable True - 4.5.4 + 4.5.5 Internal package used in Canvas.Views.Web artemiusgreat indemos.com diff --git a/Canvas.Core/Composers/GroupComposer.cs b/Canvas.Core/Composers/GroupComposer.cs index 413fe61..a5c18f4 100644 --- a/Canvas.Core/Composers/GroupComposer.cs +++ b/Canvas.Core/Composers/GroupComposer.cs @@ -29,7 +29,7 @@ public override void Render(DimensionModel domain) continue; } - foreach (var series in seriesGroup.Groups) + foreach (var series in seriesGroup.Groups.ToList()) { series.Value.Composer = this; series.Value.CreateShape(i, series.Key, Items); @@ -54,7 +54,7 @@ protected override (double, double, double) GetExtremes(int i, double min, doubl return (min, max, average); } - foreach (var shape in series.Groups) + foreach (var shape in series.Groups.ToList()) { shape.Value.Composer = this; diff --git a/Canvas.Core/Shapes/Shape.cs b/Canvas.Core/Shapes/Shape.cs index 8a12c16..6b12ab4 100644 --- a/Canvas.Core/Shapes/Shape.cs +++ b/Canvas.Core/Shapes/Shape.cs @@ -130,7 +130,7 @@ public class Shape : IShape /// public Shape() { - Groups = new ConcurrentDictionary(); + Groups = new Dictionary(); } /// diff --git a/Canvas.Views.Web/Canvas.Views.Web.csproj b/Canvas.Views.Web/Canvas.Views.Web.csproj index bcaed6a..3547e63 100644 --- a/Canvas.Views.Web/Canvas.Views.Web.csproj +++ b/Canvas.Views.Web/Canvas.Views.Web.csproj @@ -10,7 +10,7 @@ true True - 4.5.4 + 4.5.5 finance chart opengl canvas trading gdi stock direct2d artemiusgreat indemos.com