check for the view, crash--

(crash probably not reported on bz)

svn path=/trunk/KDE/kdelibs/; revision=984203
This commit is contained in:
Marco Martin 2009-06-20 13:00:48 +00:00
parent 27e83c08d8
commit eb7b8827e1

View File

@ -1225,7 +1225,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
Containment* c = qobject_cast<Plasma::Containment*>(this);
//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()) {
c->d->positionToolBox();
}