diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2011-02-14 09:57:26 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2011-02-14 12:50:51 (GMT) |
commit | 0bf70c35bd51be4435c95f28dab96bf9f00b49db (patch) | |
tree | dad35efe42cc9e5ed3ae9d7f9c95ab13add5c0e5 /src | |
parent | a1f695f7b3b671c26925d41fba7dff1d3cb49da2 (diff) | |
download | Qt-0bf70c35bd51be4435c95f28dab96bf9f00b49db.zip Qt-0bf70c35bd51be4435c95f28dab96bf9f00b49db.tar.gz Qt-0bf70c35bd51be4435c95f28dab96bf9f00b49db.tar.bz2 |
QStyleSheetStyle: dont crash in PE_WIDGET when widget is null
Reviewed-by: Gabriel
Task-number: QTBUG-15910
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qstylesheetstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp index 2b3dffc..a4e7c38 100644 --- a/src/gui/styles/qstylesheetstyle.cpp +++ b/src/gui/styles/qstylesheetstyle.cpp @@ -4248,7 +4248,7 @@ void QStyleSheetStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *op return; case PE_Widget: - if (!rule.hasDrawable()) { + if (w && !rule.hasDrawable()) { QWidget *container = containerWidget(w); if (autoFillDisabledWidgets->contains(container) && (container == w || !renderRule(container, opt).hasBackground())) { |