From b065ada6334e6f0b174c591bfde827e57b0a43ab Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Fri, 8 Feb 2019 05:24:55 -0800 Subject: [PATCH] Fix unbalanced save() restore() in cards (#3571) --- cockatrice/src/carditem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/carditem.cpp b/cockatrice/src/carditem.cpp index 69f57b74..06b4b362 100644 --- a/cockatrice/src/carditem.cpp +++ b/cockatrice/src/carditem.cpp @@ -142,7 +142,6 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, if (getBeingPointedAt()) { painter->fillRect(boundingRect(), QBrush(QColor(255, 0, 0, 100))); - painter->restore(); } if (doesntUntap) { @@ -160,6 +159,8 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, painter->restore(); } + + painter->restore(); } void CardItem::setAttacking(bool _attacking)