Fix: ImageItem::paint

This commit is contained in:
Dmitry Zagorodnev 2022-10-24 14:57:31 +03:00
parent 4903abc408
commit 2c5ed82376

View File

@ -364,7 +364,7 @@ void ImageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
} }
if (shiftHeight > 0){ if (shiftHeight > 0){
point.setY(point.x()+shiftHeight/2); point.setY(point.y()+shiftHeight/2);
} else { } else {
cutY = fabs(shiftHeight/2); cutY = fabs(shiftHeight/2);
cutHeigth += shiftHeight; cutHeigth += shiftHeight;