]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of bug with Parameters folder
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 19 May 2014 11:43:30 +0000 (15:43 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 19 May 2014 11:43:30 +0000 (15:43 +0400)
src/Model/Model_Document.cpp

index a41e2c7fa6097698673377f3129caae234f8b011..619e05c01804e7daa39317fc785b82f6894539fd 100644 (file)
@@ -383,7 +383,7 @@ boost::shared_ptr<ModelAPI_Feature> Model_Document::feature(
 int Model_Document::size(const string& theGroupID) 
 {
   Handle(TDataStd_ReferenceArray) aRefs;
-  if (groupLabel(FEATURES_GROUP).FindAttribute(TDataStd_ReferenceArray::GetID(), aRefs))
+  if (groupLabel(theGroupID).FindAttribute(TDataStd_ReferenceArray::GetID(), aRefs))
     return aRefs->Length();
   // group is not found
   return 0;