mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
Fix too many zones crashing (#1337)
Fix for an issue where creating too many zones causes a crash
This commit is contained in:
@@ -551,8 +551,8 @@ bool ZoneSet::CalculateGridZones(Rect workArea, JSONHelpers::GridLayoutInfo grid
|
|||||||
long Start;
|
long Start;
|
||||||
long End;
|
long End;
|
||||||
};
|
};
|
||||||
Info rowInfo[JSONHelpers::MAX_ZONE_COUNT];
|
std::vector<Info> rowInfo(gridLayoutInfo.rows());
|
||||||
Info columnInfo[JSONHelpers::MAX_ZONE_COUNT];
|
std::vector<Info> columnInfo(gridLayoutInfo.columns());
|
||||||
|
|
||||||
long top = spacing;
|
long top = spacing;
|
||||||
for (int row = 0; row < gridLayoutInfo.rows(); row++)
|
for (int row = 0; row < gridLayoutInfo.rows(); row++)
|
||||||
|
|||||||
Reference in New Issue
Block a user