--- a/src/hbcore/image/hbsgimageiconimpl_p.cpp Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbcore/image/hbsgimageiconimpl_p.cpp Mon Oct 04 00:38:12 2010 +0300
@@ -308,13 +308,13 @@
if (alignment & Qt::AlignRight) {
topLeft.setX(rect.right() - renderSize.width());
} else if (alignment & Qt::AlignHCenter) {
- topLeft.setX(topLeft.x() + (rect.width() - renderSize.width()) / 2);
+ topLeft.setX(topLeft.x() + (qRound(rect.width()) - qRound(renderSize.width())) / 2.0f);
}
if (alignment & Qt::AlignBottom) {
topLeft.setY(rect.bottom() - renderSize.height());
} else if (alignment & Qt::AlignVCenter) {
- topLeft.setY(topLeft.y() + (rect.height() - renderSize.height()) / 2);
+ topLeft.setY(topLeft.y() + (qRound(rect.height()) - qRound(renderSize.height())) / 2.0f);
}
return topLeft;
}