if targetSize is in lock step with the boundingRect size, then change them together

svn path=/trunk/KDE/kdelibs/; revision=953300
This commit is contained in:
Aaron J. Seigo 2009-04-13 17:01:12 +00:00
parent dc7bd9bbb5
commit e58c7051ab

View File

@ -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();
}