From: nds Date: Mon, 12 Oct 2015 09:26:36 +0000 (+0300) Subject: Avoid the warning message in a right case. X-Git-Tag: V_1.4.0_demo2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57de2731018630983cd133b6e4167a85cf259ef7;p=modules%2Fshaper.git Avoid the warning message in a right case. --- diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.cpp b/src/ModuleBase/ModuleBase_WidgetFactory.cpp index 40a6c5a41..bedab8cb3 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFactory.cpp @@ -153,7 +153,8 @@ ModuleBase_ModelWidget* ModuleBase_WidgetFactory::createWidgetByType(const std:: result = new ModuleBase_WidgetToolbox(theParent, myWidgetApi, myParentId); } else if (theType == WDG_SWITCH) { result = new ModuleBase_WidgetSwitch(theParent, myWidgetApi, myParentId); - } else if (theType == WDG_TOOLBOX_BOX || theType == WDG_SWITCH_CASE) { + } else if (theType == WDG_TOOLBOX_BOX || theType == WDG_SWITCH_CASE || + theType == NODE_VALIDATOR) { // Do nothing for "box" and "case" result = NULL; } else {