Skip to content

Commit

Permalink
Fixed one mishandled case when computing zones (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan100sic committed Mar 5, 2020
1 parent 32de0ae commit 2b91903
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 @@ -399,11 +399,11 @@ bool ZoneSet::CalculateColumnsAndRowsLayout(Rect workArea, JSONHelpers::ZoneSetL
if (type == JSONHelpers::ZoneSetLayoutType::Columns)
{
right = left + (zone + 1) * totalWidth / zoneCount - zone * totalWidth / zoneCount;
bottom = totalHeight - spacing;
bottom = totalHeight + spacing;
}
else
{ //Rows
right = totalWidth - spacing;
right = totalWidth + spacing;
bottom = top + (zone + 1) * totalHeight / zoneCount - zone * totalHeight / zoneCount;
}

Expand Down

0 comments on commit 2b91903

Please sign in to comment.