return -1;\r
}\r
else if ( reference->getMultiplicity() == -1) {\r
- return ifaceCount+1;\r
+ return ifaceCount;\r
}\r
- else if ( reference->getMultiplicity() > ifaceCount) {\r
- return ifaceCount+1;\r
+ else if ( ifaceCount < reference->getMultiplicity()) {\r
+ return ifaceCount;\r
}\r
return -1;\r
}\r
inter->setPurpose(purpose);\r
inter->setLevel(level); \r
inter->connectFrom(NULL);\r
- inter->setName(reference->getName()+"_"+QString::number(id));\r
+ inter->setName(reference->getName()+"_"+QString::number(id+1));\r
return inter;\r
}\r
\r