chack for view, crash--

svn path=/trunk/KDE/kdelibs/; revision=1114503
This commit is contained in:
Marco Martin 2010-04-13 19:16:20 +00:00
parent 08c94cc3de
commit b4b822e1dd

View File

@ -1377,7 +1377,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
// a Containment style option based on the one we get
// the view must be assigned only if its containment is actually our own
Containment::StyleOption coption(*option);
if (v->containment() == containment()) {
if (v && v->containment() == containment()) {
coption.view = v;
}
paintInterface(painter, &coption, contentsRect);