Salome HOME
Issues #2027: trim on cirlce(arc will be created). Result of selected will clear...
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_WidgetCreator.cpp
index a07562235ca13c6133ac928ca3477f35787eb33b..7b8154b1c773426a3a84845eee52ae0b11ddf905 100644 (file)
@@ -24,14 +24,14 @@ ModuleBase_ModelWidget* CollectionPlugin_WidgetCreator::createWidgetByType(
                                                      const std::string& theType,
                                                      QWidget* theParent,
                                                      Config_WidgetAPI* theWidgetApi,
-                                                     ModuleBase_IWorkshop* /*theWorkshop*/)
+                                                     ModuleBase_IWorkshop* theWorkshop)
 {
   ModuleBase_ModelWidget* aWidget = 0;
   if (myPanelTypes.find(theType) == myPanelTypes.end())
     return aWidget;
 
-  if (theType == "field-panel") {     
-    aWidget = new CollectionPlugin_WidgetField(theParent, theWidgetApi);
+  if (theType == "field-panel") {
+    aWidget = new CollectionPlugin_WidgetField(theParent, theWorkshop, theWidgetApi);
   }
 
   return aWidget;