From 86e1ae08fa9587c5a3a4896f657d95fe9a7480ac Mon Sep 17 00:00:00 2001 From: Black Hat Date: Fri, 19 Oct 2018 13:30:29 +0800 Subject: [PATCH] Center image in ImageItem. Fix #99. --- src/imageitem.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/imageitem.cpp b/src/imageitem.cpp index 5590c0a..6b9a533 100644 --- a/src/imageitem.cpp +++ b/src/imageitem.cpp @@ -50,9 +50,6 @@ void ImageItem::paint(QPainter *painter) { painter->setClipPath(clip); } - if (center.x() < 0) center.setX(0); - if (center.y() < 0) center.setY(0); - painter->drawImage(center, scaled); }