From e58c7051abe83aea2ef8ec49122be8019d79a538 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 13 Apr 2009 17:01:12 +0000 Subject: [PATCH] if targetSize is in lock step with the boundingRect size, then change them together svn path=/trunk/KDE/kdelibs/; revision=953300 --- wallpaper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallpaper.cpp b/wallpaper.cpp index 6f1d16341..caba6687c 100644 --- a/wallpaper.cpp +++ b/wallpaper.cpp @@ -194,9 +194,10 @@ bool Wallpaper::isInitialized() const void Wallpaper::setBoundingRect(const QRectF &boundingRect) { + QSizeF oldBoundingRectSize = d->boundingRect.size(); d->boundingRect = boundingRect; - if (!d->targetSize.isValid()) { + if (!d->targetSize.isValid() || d->targetSize == oldBoundingRectSize) { d->targetSize = boundingRect.size(); emit renderHintsChanged(); }