From 0609d24caa8565404365b7bf03ed6df7455f743c Mon Sep 17 00:00:00 2001 From: RickyRister Date: Thu, 28 Nov 2024 04:42:18 -0800 Subject: [PATCH] some small formatting stuff --- cockatrice/src/game/zones/view_zone.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/game/zones/view_zone.cpp b/cockatrice/src/game/zones/view_zone.cpp index b7cf1f171..eb2668fbc 100644 --- a/cockatrice/src/game/zones/view_zone.cpp +++ b/cockatrice/src/game/zones/view_zone.cpp @@ -163,12 +163,13 @@ ZoneViewZone::GridSize ZoneViewZone::positionCardsForDisplay(CardList &cards, bo } else { int cols = qMin(qFloor(qSqrt((double)cardCount / 2)), 7); int rows = qMax(qCeil((double)cardCount / cols), 1); - if (minRows == 0) + if (minRows == 0) { minRows = rows; - else if (rows < minRows) { + } else if (rows < minRows) { rows = minRows; cols = qCeil((double)cardCount / minRows); } + if (cols < 2) cols = 2;