Commit c260a8a1 authored by Matt Lowe's avatar Matt Lowe
Browse files

Fixed image centering

parent bfa002e5
...@@ -123,7 +123,7 @@ void AbstractCardItem::paintPicture(QPainter *painter, const QSizeF &translatedS ...@@ -123,7 +123,7 @@ void AbstractCardItem::paintPicture(QPainter *painter, const QSizeF &translatedS
} else { } else {
painter->save(); painter->save();
transformPainter(painter, translatedSize, angle); transformPainter(painter, translatedSize, angle);
painter->drawPixmap(QPointF(0, angle ? -1 : 0), translatedPixmap); painter->drawPixmap(QPointF(1, 1), translatedPixmap);
painter->restore(); painter->restore();
} }
painter->setBrush(bgColor); painter->setBrush(bgColor);
......
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