From: ouv Date: Tue, 10 Jan 2012 04:46:46 +0000 (+0000) Subject: Minor fix X-Git-Tag: CTH_1_7_3~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c6f2519c011b05af25abf95815c4abcc72aaabf;p=modules%2Fgui.git Minor fix --- 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 :