]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make groups apperaed in results
authormpv <mikhail.ponikarov@opencascade.com>
Fri, 31 Oct 2014 09:11:57 +0000 (12:11 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 31 Oct 2014 09:11:57 +0000 (12:11 +0300)
src/FeaturesPlugin/FeaturesPlugin_Group.cpp

index e9ae74d59627fda00bc49c8bebdb64bed2021025..c5761b11e359722e64dc2757ca2ccc7528df4dc9 100644 (file)
@@ -9,6 +9,7 @@
 #include <ModelAPI_AttributeInteger.h>
 #include <ModelAPI_AttributeString.h>
 #include <ModelAPI_AttributeSelectionList.h>
+#include <ModelAPI_ResultGroup.h>
 
 
 using namespace std;
@@ -26,6 +27,7 @@ void FeaturesPlugin_Group::initAttributes()
 void FeaturesPlugin_Group::execute()
 {
   if (results().empty()) { // just create result if not exists
-    document()->createGroup(data());
+    ResultPtr aGroup = document()->createGroup(data());
+    setResult(aGroup);
   }
 }