From 94989a72424b320015af717bfadc96c4b6cf0cb6 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 6 Aug 2010 05:57:53 +0000 Subject: [PATCH] It corrects an exception which was generated by the scrolled QWebView. The zero widget came to the method. --- src/Style/Style_Salome.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Style/Style_Salome.cxx b/src/Style/Style_Salome.cxx index 87e139f66..990761b91 100644 --- a/src/Style/Style_Salome.cxx +++ b/src/Style/Style_Salome.cxx @@ -261,7 +261,7 @@ void Style_Salome::drawComplexControl( ComplexControl cc, const QStyleOptionComp return; } - const QPalette& pal = w->palette(); + const QPalette& pal = w ? w->palette() : QPalette(); switch( cc ) { case CC_SpinBox: if (const QStyleOptionSpinBox *spin = qstyleoption_cast(opt)) { -- 2.39.2