mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 18:43:55 -07:00
Fix unbalanced save() restore() in cards (#3571)
This commit is contained in:
parent
e4bac025dd
commit
b065ada633
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,6 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
|
|
||||||
if (getBeingPointedAt()) {
|
if (getBeingPointedAt()) {
|
||||||
painter->fillRect(boundingRect(), QBrush(QColor(255, 0, 0, 100)));
|
painter->fillRect(boundingRect(), QBrush(QColor(255, 0, 0, 100)));
|
||||||
painter->restore();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doesntUntap) {
|
if (doesntUntap) {
|
||||||
|
|
@ -160,6 +159,8 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
|
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CardItem::setAttacking(bool _attacking)
|
void CardItem::setAttacking(bool _attacking)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue