From: nds Date: Fri, 6 Aug 2010 05:57:53 +0000 (+0000) Subject: It corrects an exception which was generated by the scrolled QWebView. The zero widge... X-Git-Tag: TG_5_1_6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94989a72424b320015af717bfadc96c4b6cf0cb6;p=modules%2Fgui.git It corrects an exception which was generated by the scrolled QWebView. The zero widget came to the method. --- 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)) {