Salome HOME
Prepare version 1.2.1: quick fix for iteration 2 release
[modules/shaper.git] / src / Model / Model_ResultGroup.cpp
index dd4ee732b7091f9823036048d326bef3f3d6f1af..87210b5c52a61ccd4b9fdf5b48a3e924e7ef9056 100644 (file)
@@ -14,6 +14,7 @@
 
 Model_ResultGroup::Model_ResultGroup(std::shared_ptr<ModelAPI_Data> theOwnerData)
 {
+  myIsDisabled = true; // by default it is not initialized and false to be after created
   setIsConcealed(false);
   myOwnerData = theOwnerData;
 }
@@ -22,7 +23,7 @@ void Model_ResultGroup::initAttributes()
 {
   // append the color attribute. It is empty, the attribute will be filled by a request
   DataPtr aData = data();
-  aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::type());
+  aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId());
 }
 
 void Model_ResultGroup::colorConfigInfo(std::string& theSection, std::string& theName,