[FZEditor]Fix crash when deleting a zone while dragging it (#22884)

This commit is contained in:
Seraphima Zykova 2022-12-19 19:51:27 +03:00 committed by GitHub
parent 6244604d03
commit d0c9350ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,6 +255,11 @@ namespace FancyZonesEditor
private void UpdateFromSnappyHelpers()
{
if (ZoneIndex >= Model.Zones.Count)
{
return;
}
Int32Rect rect = Model.Zones[ZoneIndex];
if (snappyX != null)