don't crash when the view is not a plasma one (hello plasmoidviewer:)

svn path=/trunk/KDE/kdelibs/; revision=899877
This commit is contained in:
Marco Martin 2008-12-21 18:59:46 +00:00
parent 1b7bf8cdb9
commit acc4171b16

View File

@ -1057,8 +1057,10 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
if (c->d->toolBox->viewTransform().isScaling() && !v->transform().isScaling()) {
c->d->positionToolBox();
}
if (v) {
c->d->toolBox->setViewTransform(v->transform());
}
}
if (!v || v->isWallpaperEnabled()) {