From 4d5728a8be2382b45d8d2c607c1d32ebb8f805da Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 11 Dec 2019 09:51:21 +0100 Subject: [PATCH] Fixed AbtractRGBDevice not updating DeviceRectangle on Location change --- RGB.NET.Core/Devices/AbstractRGBDevice.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RGB.NET.Core/Devices/AbstractRGBDevice.cs b/RGB.NET.Core/Devices/AbstractRGBDevice.cs index cd76493..2ed8377 100644 --- a/RGB.NET.Core/Devices/AbstractRGBDevice.cs +++ b/RGB.NET.Core/Devices/AbstractRGBDevice.cs @@ -32,7 +32,11 @@ namespace RGB.NET.Core public Point Location { get => _location; - set => SetProperty(ref _location, value); + set + { + if (SetProperty(ref _location, value)) + UpdateActualData(); + } } private Size _size = Size.Invalid;