svn path=/trunk/KDE/kdelibs/; revision=1109929
This commit is contained in:
Marco Martin 2010-04-01 09:22:22 +00:00
parent 5809b052d6
commit 8f7d7bc782

View File

@ -711,7 +711,7 @@ void ExtenderItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
QSizeF ExtenderItem::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
{
if (d->widget->isWidget()) {
if (d->widget && d->widget->isWidget()) {
return QGraphicsWidget::sizeHint(which, constraint);
} else {
switch (which) {