if the second QRect paramenter of paintFrame is empty, take the whole pixmap rect: this is what was supposed to happen in the first place

svn path=/trunk/KDE/kdelibs/; revision=1216114
This commit is contained in:
Marco Martin 2011-01-21 13:18:00 +00:00
parent 30b570357f
commit ef683f5eac

View File

@ -519,7 +519,7 @@ void FrameSvg::paintFrame(QPainter *painter, const QRectF &target, const QRectF
}
}
painter->drawPixmap(target, frame->cachedBackground, source.isValid() ? source : target);
painter->drawPixmap(target, frame->cachedBackground, source.isValid() ? source : frame->cachedBackground.rect());
}
void FrameSvg::paintFrame(QPainter *painter, const QPointF &pos)