mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-06 21:04:18 +05:00
0020619: Union list regression ?
This commit is contained in:
parent
5c917427de
commit
066be714db
@ -146,8 +146,8 @@ void GEOMImpl_IGroupOperations::AddObject(Handle(GEOM_Object) theGroup, int theS
|
|||||||
for(Standard_Integer i = 1; i<=aLength; i++) {
|
for(Standard_Integer i = 1; i<=aLength; i++) {
|
||||||
aNewSeq->SetValue(i, aSeq->Value(i));
|
aNewSeq->SetValue(i, aSeq->Value(i));
|
||||||
if(aSeq->Value(i) == theSubShapeID) {
|
if(aSeq->Value(i) == theSubShapeID) {
|
||||||
SetErrorCode(ALREADY_PRESENT);
|
SetErrorCode(ALREADY_PRESENT);
|
||||||
return; //
|
return; //
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aNewSeq->SetValue(aLength+1, theSubShapeID);
|
aNewSeq->SetValue(aLength+1, theSubShapeID);
|
||||||
@ -249,7 +249,8 @@ void GEOMImpl_IGroupOperations::UnionList (Handle(GEOM_Object) theGroup,
|
|||||||
|
|
||||||
Standard_Integer aLen = theSubShapes->Length();
|
Standard_Integer aLen = theSubShapes->Length();
|
||||||
if (aLen < 1) {
|
if (aLen < 1) {
|
||||||
SetErrorCode("The list is empty");
|
//SetErrorCode("The list is empty");
|
||||||
|
SetErrorCode(OK);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user