]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
It corrects an exception which was generated by the scrolled QWebView. The zero widge... TG_5_1_6
authornds <nds@opencascade.com>
Fri, 6 Aug 2010 05:57:53 +0000 (05:57 +0000)
committernds <nds@opencascade.com>
Fri, 6 Aug 2010 05:57:53 +0000 (05:57 +0000)
src/Style/Style_Salome.cxx

index 87e139f669ae771e3bf1df2d7f78e1cdcfe85a48..990761b91703f7c4f4c3ddfa0dc74030ce6b089b 100644 (file)
@@ -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<const QStyleOptionSpinBox *>(opt)) {