From d4e9929555bdb28b391d056a34c485c3fec31e3a Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sat, 22 Dec 2007 12:49:44 +0000 Subject: [PATCH] Fix the centring calculation svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751610 --- containment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containment.cpp b/containment.cpp index 217350894..50cd0c681 100644 --- a/containment.cpp +++ b/containment.cpp @@ -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; }