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