summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qfocusframe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qfocusframe.cpp')
-rw-r--r--src/gui/widgets/qfocusframe.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qfocusframe.cpp b/src/gui/widgets/qfocusframe.cpp
index c159a1e..6508c31 100644
--- a/src/gui/widgets/qfocusframe.cpp
+++ b/src/gui/widgets/qfocusframe.cpp
@@ -85,6 +85,9 @@ void QFocusFramePrivate::update()
void QFocusFramePrivate::updateSize()
{
Q_Q(QFocusFrame);
+ if (!widget)
+ return;
+
int vmargin = q->style()->pixelMetric(QStyle::PM_FocusFrameVMargin),
hmargin = q->style()->pixelMetric(QStyle::PM_FocusFrameHMargin);
QPoint pos(widget->x(), widget->y());