Fix the centring calculation

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751610
This commit is contained in:
Jason Stubbs 2007-12-22 12:49:44 +00:00
parent fa69a979c9
commit d4e9929555

View File

@ -469,8 +469,8 @@ QRectF Containment::geometryForApplet(Applet *applet) const
}
// Otherwise place it in the centre of the screen
placement.moveLeft(geometry().width() / 2 + placement.width() / 2);
placement.moveTop(geometry().height() / 2 + placement.height() / 2);
placement.moveLeft(geometry().width() / 2 - placement.width() / 2);
placement.moveTop(geometry().height() / 2 - placement.height() / 2);
return placement;
}