mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +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 End;
|
||||
};
|
||||
Info rowInfo[JSONHelpers::MAX_ZONE_COUNT];
|
||||
Info columnInfo[JSONHelpers::MAX_ZONE_COUNT];
|
||||
std::vector<Info> rowInfo(gridLayoutInfo.rows());
|
||||
std::vector<Info> columnInfo(gridLayoutInfo.columns());
|
||||
|
||||
long top = spacing;
|
||||
for (int row = 0; row < gridLayoutInfo.rows(); row++)
|
||||
|
||||
Reference in New Issue
Block a user