]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchShapePlugin/SketchShapePlugin_WidgetCreator.cpp
Salome HOME
Construction of vertices/edges/faces on the base of sketch: Widget Creator Factory
[modules/shaper.git] / src / SketchShapePlugin / SketchShapePlugin_WidgetCreator.cpp
index 89552f187a47e4d60f53db5cf148e148da4f1ce5..5c01de0632ed1ccd14d73b5f8a4788ecccf59019 100755 (executable)
@@ -18,13 +18,12 @@ ModuleBase_ModelWidget* SketchShapePlugin_WidgetCreator::createWidgetByType(
                                    const std::string& theType, QWidget* theParent)
 {
   ModuleBase_ModelWidget* aWidget = 0;
-  if (myTypes.find(theType) != myTypes.end())
+  if (myTypes.find(theType) == myTypes.end())
     return aWidget;
 
-  if (theType == "sketchshape_groupbox") {
-    //aWidget = 
-      new SketchShapePlugin_PageGroupBox(theParent);
-  }
+  //if (theType == "sketchshape_groupbox") {
+  //  aWidget = new SketchShapePlugin_PageGroupBox(theParent);
+  //}
 
   return aWidget;
 }