chack for view, crash--
svn path=/trunk/KDE/kdelibs/; revision=1114503
This commit is contained in:
parent
08c94cc3de
commit
b4b822e1dd
@ -1377,7 +1377,7 @@ void Applet::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QW
|
|||||||
// a Containment style option based on the one we get
|
// a Containment style option based on the one we get
|
||||||
// the view must be assigned only if its containment is actually our own
|
// the view must be assigned only if its containment is actually our own
|
||||||
Containment::StyleOption coption(*option);
|
Containment::StyleOption coption(*option);
|
||||||
if (v->containment() == containment()) {
|
if (v && v->containment() == containment()) {
|
||||||
coption.view = v;
|
coption.view = v;
|
||||||
}
|
}
|
||||||
paintInterface(painter, &coption, contentsRect);
|
paintInterface(painter, &coption, contentsRect);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user