From 1c6f2519c011b05af25abf95815c4abcc72aaabf Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 10 Jan 2012 04:46:46 +0000 Subject: [PATCH] Minor fix --- src/LightApp/LightApp_VTKSelector.cxx | 11 ++++++++--- src/SVTK/SALOME_Actor.cxx | 6 ++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/LightApp/LightApp_VTKSelector.cxx b/src/LightApp/LightApp_VTKSelector.cxx index 61663b751..741010690 100644 --- a/src/LightApp/LightApp_VTKSelector.cxx +++ b/src/LightApp/LightApp_VTKSelector.cxx @@ -242,14 +242,19 @@ LightApp_VTKSelector anAppendList.Append(anIO); aSelector->AddOrRemoveIndex(anIO,anOwner->GetIds(),false); + }else if(const LightApp_DataOwner* anOwner = dynamic_cast(aDataOwner)){ + Handle(SALOME_InteractiveObject) anIO = + new SALOME_InteractiveObject(anOwner->entry().toLatin1(),""); + aSelector->AddIObject(anIO); + anAppendList.Append(anIO); }else if(const LightApp_DataSubOwner* anOwner = dynamic_cast(aDataOwner)){ Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject(anOwner->entry().toLatin1(),""); aSelector->AddIObject(anIO); anAppendList.Append(anIO); - TColStd_IndexedMapOfInteger aMap; - aMap.Add( anOwner->index() ); - aSelector->AddOrRemoveIndex( anIO,aMap, false ); + TColStd_IndexedMapOfInteger aMap; + aMap.Add( anOwner->index() ); + aSelector->AddOrRemoveIndex( anIO,aMap, false ); } } // To remove IOs, which is not selected. diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 4314d7c22..624495948 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -474,6 +474,8 @@ SALOME_Actor myPreHighlightActor->SetVisibility( true ); } } + else + myIsPreselected = false; break; } case CellSelection: @@ -504,6 +506,8 @@ SALOME_Actor } } } + else + myIsPreselected = false; break; } case EdgeOfCellSelection: @@ -534,6 +538,8 @@ SALOME_Actor } } } + else + myIsPreselected = false; break; } case ActorSelection : -- 2.39.2