Skip to content

Commit

Permalink
Fix too many zones crashing (#1337)
Browse files Browse the repository at this point in the history
Fix for an issue where creating too many zones causes a crash
  • Loading branch information
ivan100sic committed Mar 5, 2020
1 parent cf1b538 commit 8a22da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/fancyzones/lib/ZoneSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 8a22da0

Please sign in to comment.