From 64bc2af527c38c530383fe67f8e95a4a5601c820 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 23 Sep 2010 19:18:16 +0000 Subject: [PATCH] SVN_SILENT: pedant svn path=/trunk/KDE/kdelibs/; revision=1178741 --- applet.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 5f242d0ef..932cb5cdb 100644 --- a/applet.cpp +++ b/applet.cpp @@ -945,7 +945,6 @@ void Applet::setBackgroundHints(const BackgroundHints hints) d->background->resizeFrame(boundingRect().size()); //if the background has an "overlay" element decide a random position for it and then save it so it's consistent across plasma starts - if (d->background->hasElement("overlay")) { QSize overlaySize = d->background->elementSize("overlay"); @@ -954,7 +953,6 @@ void Applet::setBackgroundHints(const BackgroundHints hints) d->background->d->overlayPos.rx() = - (overlaySize.width() /2) + (overlaySize.width() /4) * (qrand() % (4 + 1)); d->background->d->overlayPos.ry() = (- (overlaySize.height() /2) + (overlaySize.height() /4) * (qrand() % (4 + 1)))/2; } - } else if (d->background) { qreal left, top, right, bottom; d->background->getMargins(left, top, right, bottom);