mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 10:50:34 +05:00
Merge from V6_main 06/03/2013
This commit is contained in:
parent
1dac6744a7
commit
9be9f89876
@ -1151,8 +1151,8 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::UnionListOfGroups
|
|||||||
for (i = 1; i <= aLen; i++) {
|
for (i = 1; i <= aLen; i++) {
|
||||||
Handle(GEOM_Object) aGr_i = Handle(GEOM_Object)::DownCast(theGList->Value(i));
|
Handle(GEOM_Object) aGr_i = Handle(GEOM_Object)::DownCast(theGList->Value(i));
|
||||||
if ( aGr_i->GetType() != GEOM_GROUP ) {
|
if ( aGr_i->GetType() != GEOM_GROUP ) {
|
||||||
SetErrorCode( "Error: You could perform this operation only with group. Please select a group." );
|
SetErrorCode( "Error: You could perform this operation only with group. Please select a group." );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// Get group type
|
// Get group type
|
||||||
aType_i = GetType(aGr_i);
|
aType_i = GetType(aGr_i);
|
||||||
@ -1582,11 +1582,13 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::GetMainShape (Handle(GEOM_Object)
|
|||||||
{
|
{
|
||||||
SetErrorCode(KO);
|
SetErrorCode(KO);
|
||||||
|
|
||||||
if(theGroup.IsNull()) return NULL;
|
if (theGroup.IsNull()) return NULL;
|
||||||
if ( theGroup->GetType() != GEOM_GROUP ) {
|
if (theGroup->GetType() != GEOM_GROUP &&
|
||||||
SetErrorCode( "Error: You could perform this operation only with group. Please select a group." );
|
theGroup->GetType() != GEOM_SUBSHAPE) {
|
||||||
|
SetErrorCode("Error: You could perform this operation only with a group or a sub-shape.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle(GEOM_Function) aGroupFunction = theGroup->GetFunction(1);
|
Handle(GEOM_Function) aGroupFunction = theGroup->GetFunction(1);
|
||||||
if (aGroupFunction.IsNull()) return NULL;
|
if (aGroupFunction.IsNull()) return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user