summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidgetwindow.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-02-23 10:30:33 +0100
committerJørgen Lind <jorgen.lind@theqtcompany.com>2015-02-24 08:20:10 +0000
commitfb4d8c21c4924023227a1c01e3315af79e2d5607 (patch)
treeaa7c58cf6b4b2f132a4c50d83d594ecfdea2fa1f /src/widgets/kernel/qwidgetwindow.cpp
parentc97445945501acf13ba6d4f314161bf9689a8a95 (diff)
QWidgetWindow check valid widget geometry
before marking the backingstore as dirty. The QWidgetBackingstore has an assert that the region or the rect passed in is not empty, hence its programming error not to check before calling this function. Task-number: QTBUG-43489 Change-Id: Ic67fb6ca7959466e1758ce91827cd4b8acdf73fc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow.cpp')
-rw-r--r--src/widgets/kernel/qwidgetwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidgetwindow.cpp b/src/widgets/kernel/qwidgetwindow.cpp
index b31f9a51dd..87baaa13de 100644
--- a/src/widgets/kernel/qwidgetwindow.cpp
+++ b/src/widgets/kernel/qwidgetwindow.cpp
@@ -639,7 +639,7 @@ void QWidgetWindow::handleScreenChange()
void QWidgetWindow::repaintWindow()
{
- if (!m_widget->isVisible() || !m_widget->updatesEnabled())
+ if (!m_widget->isVisible() || !m_widget->updatesEnabled() || !m_widget->rect().isValid())
return;
QTLWExtra *tlwExtra = m_widget->window()->d_func()->maybeTopData();