Commit 42c4f4a0 authored by Matt Lowe's avatar Matt Lowe
Browse files

Fixed pile view bug

When sorting a view which has the last column the longest an error
happens where the view is squashed.
parent 6d4716b3
......@@ -118,7 +118,6 @@ void ZoneViewZone::reorganizeCards()
typeRow++; // add below current card
else { // if no match then move card to next column
typeColumn++;
longestRow = qMax(typeRow, longestRow);
typeRow = 0;
}
}
......@@ -128,6 +127,7 @@ void ZoneViewZone::reorganizeCards()
qreal y = typeRow * CARD_HEIGHT / 3;
c->setPos(x + 5, y + 5);
c->setRealZValue(i);
longestRow = qMax(typeRow, longestRow);
}
} else {
for (int i = 0; i < cardCount; i++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment