diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/GridEditor.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/GridEditor.xaml.cs index a065b55386..ee004ae6c4 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/GridEditor.xaml.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/GridEditor.xaml.cs @@ -609,7 +609,7 @@ namespace FancyZonesEditor int pointsIndex = 0; for (int walk = row; walk < maxRow; walk++) { - zone.HorizontalSnapPoints[pointsIndex++] = _rowInfo[walk].End + spacing / 2 - top; + zone.HorizontalSnapPoints[pointsIndex++] = _rowInfo[walk].End + (spacing / 2) - top; } } @@ -626,7 +626,7 @@ namespace FancyZonesEditor int pointsIndex = 0; for (int walk = col; walk < maxCol; walk++) { - zone.VerticalSnapPoints[pointsIndex++] = _colInfo[walk].End + spacing / 2 - left; + zone.VerticalSnapPoints[pointsIndex++] = _colInfo[walk].End + (spacing / 2) - left; } }