Fix crash when layout argument is null.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=706975
This commit is contained in:
Robert Knight 2007-08-31 17:24:03 +00:00
parent bb25f62e55
commit 536d3749c1

View File

@ -89,7 +89,9 @@ void LayoutItem::setLayout(Layout* layout)
}
d->layout = layout;
layout->setParent(this);
if ( layout )
layout->setParent(this);
}
Layout* LayoutItem::layout() const