Salome HOME
Implementation of the issue #1307. Also make connected parameters from different...
[modules/shaper.git] / src / Model / Model_Data.cpp
index 3d16c14bb0dfe7bc74b7ae13ac2f67bb67fa50e7..e9d808ade039cee5c7f934664bdfa7817b73b81e 100644 (file)
@@ -116,7 +116,7 @@ void Model_Data::setName(const std::string& theName)
 AttributePtr Model_Data::addAttribute(const std::string& theID, const std::string theAttrType)
 {
   AttributePtr aResult;
-  TDF_Label anAttrLab = myLab.FindChild(myAttrs.size() + 1);
+  TDF_Label anAttrLab = myLab.FindChild(int(myAttrs.size()) + 1);
   ModelAPI_Attribute* anAttr = 0;
   if (theAttrType == ModelAPI_AttributeDocRef::typeId()) {
     anAttr = new Model_AttributeDocRef(anAttrLab);