check for the view, crash--
(crash probably not reported on bz) svn path=/trunk/KDE/kdelibs/; revision=984203
This commit is contained in:
parent
27e83c08d8
commit
eb7b8827e1
@ -1225,7 +1225,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
|
|||||||
Containment* c = qobject_cast<Plasma::Containment*>(this);
|
Containment* c = qobject_cast<Plasma::Containment*>(this);
|
||||||
|
|
||||||
//update the view transform of the toolbox, since it ignores transforms
|
//update the view transform of the toolbox, since it ignores transforms
|
||||||
if (c && c->d->toolBox) {
|
if (v && c && c->d->toolBox) {
|
||||||
if (c->d->toolBox->viewTransform().isScaling() && !v->transform().isScaling()) {
|
if (c->d->toolBox->viewTransform().isScaling() && !v->transform().isScaling()) {
|
||||||
c->d->positionToolBox();
|
c->d->positionToolBox();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user