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:
parent
1b7bf8cdb9
commit
acc4171b16
@ -1057,7 +1057,9 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
|
||||
if (c->d->toolBox->viewTransform().isScaling() && !v->transform().isScaling()) {
|
||||
c->d->positionToolBox();
|
||||
}
|
||||
c->d->toolBox->setViewTransform(v->transform());
|
||||
if (v) {
|
||||
c->d->toolBox->setViewTransform(v->transform());
|
||||
}
|
||||
}
|
||||
|
||||
if (!v || v->isWallpaperEnabled()) {
|
||||
|
Loading…
Reference in New Issue
Block a user