mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
IPAL21983 WinTC5.1.4: Impossible create a group on selected subshapes
This commit is contained in:
parent
9188609436
commit
3d7ca93e2d
@ -114,11 +114,12 @@ void GEOMGUI_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
|
|||||||
|
|
||||||
if (!entryStr.isEmpty())
|
if (!entryStr.isEmpty())
|
||||||
{
|
{
|
||||||
|
Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(io->GetOwner());
|
||||||
LightApp_DataOwner* owner;
|
LightApp_DataOwner* owner;
|
||||||
if (index > -1) // Local Selection
|
if (index > -1) // Local Selection
|
||||||
owner = new LightApp_DataSubOwner (entryStr, index);
|
owner = new LightApp_DataSubOwner (entryStr, index);
|
||||||
else // Global Selection
|
else if ( !anIO.IsNull() ) // Global Selection
|
||||||
owner = new LightApp_DataOwner (entryStr);
|
owner = new LightApp_DataOwner( anIO );
|
||||||
|
|
||||||
aList.append(SUIT_DataOwnerPtr(owner));
|
aList.append(SUIT_DataOwnerPtr(owner));
|
||||||
}
|
}
|
||||||
@ -134,11 +135,14 @@ void GEOMGUI_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
|
|||||||
|
|
||||||
if ( !entryStr.isEmpty() )
|
if ( !entryStr.isEmpty() )
|
||||||
{
|
{
|
||||||
LightApp_DataOwner* owner = new LightApp_DataOwner( entryStr );
|
Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(io->GetOwner());
|
||||||
|
if ( !anIO.IsNull() ) {
|
||||||
|
LightApp_DataOwner* owner = new LightApp_DataOwner( anIO );
|
||||||
aList.append( SUIT_DataOwnerPtr( owner ) );
|
aList.append( SUIT_DataOwnerPtr( owner ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// add externally selected objects
|
// add externally selected objects
|
||||||
SUIT_DataOwnerPtrList::const_iterator anExtIter;
|
SUIT_DataOwnerPtrList::const_iterator anExtIter;
|
||||||
|
Loading…
Reference in New Issue
Block a user