From 92fcbcff2a3036432e6df0506558b974612001a6 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Sun, 8 Jan 2017 10:51:10 +0100 Subject: [PATCH] Fixed possible cache-issue in the RectangleKeyGroup --- Groups/RectangleLedGroup.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Groups/RectangleLedGroup.cs b/Groups/RectangleLedGroup.cs index 3845426..7574163 100644 --- a/Groups/RectangleLedGroup.cs +++ b/Groups/RectangleLedGroup.cs @@ -18,7 +18,7 @@ namespace CUE.NET.Groups public class RectangleLedGroup : AbstractLedGroup { #region Properties & Fields - + private IList _ledCache; private RectangleF _rectangle; @@ -35,10 +35,19 @@ namespace CUE.NET.Groups } } + private float _minOverlayPercentage; /// /// Gets or sets the minimal percentage overlay a LED must have with the to be taken into the ledgroup. /// - public float MinOverlayPercentage { get; set; } + public float MinOverlayPercentage + { + get { return _minOverlayPercentage; } + set + { + _minOverlayPercentage = value; + _ledCache = null; + } + } #endregion