Center image in ImageItem.

Fix #99.
This commit is contained in:
Black Hat 2018-10-19 13:30:29 +08:00
parent 2e6ff1be22
commit 86e1ae08fa
1 changed files with 0 additions and 3 deletions

View File

@ -50,9 +50,6 @@ void ImageItem::paint(QPainter *painter) {
painter->setClipPath(clip); painter->setClipPath(clip);
} }
if (center.x() < 0) center.setX(0);
if (center.y() < 0) center.setY(0);
painter->drawImage(center, scaled); painter->drawImage(center, scaled);
} }