mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
[FZEditor]Fix crash when deleting a zone while dragging it (#22884)
This commit is contained in:
@@ -255,6 +255,11 @@ namespace FancyZonesEditor
|
|||||||
|
|
||||||
private void UpdateFromSnappyHelpers()
|
private void UpdateFromSnappyHelpers()
|
||||||
{
|
{
|
||||||
|
if (ZoneIndex >= Model.Zones.Count)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Int32Rect rect = Model.Zones[ZoneIndex];
|
Int32Rect rect = Model.Zones[ZoneIndex];
|
||||||
|
|
||||||
if (snappyX != null)
|
if (snappyX != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user