]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor fix
authorouv <ouv@opencascade.com>
Tue, 10 Jan 2012 04:46:46 +0000 (04:46 +0000)
committerouv <ouv@opencascade.com>
Tue, 10 Jan 2012 04:46:46 +0000 (04:46 +0000)
src/LightApp/LightApp_VTKSelector.cxx
src/SVTK/SALOME_Actor.cxx

index 61663b75108cb974c0fe5d6d2c9935eb553ca9ee..741010690fdfc9096f0fc188e10c67f6bda6c5b9 100644 (file)
@@ -242,14 +242,19 @@ LightApp_VTKSelector
 
              anAppendList.Append(anIO);
              aSelector->AddOrRemoveIndex(anIO,anOwner->GetIds(),false);
+           }else if(const LightApp_DataOwner* anOwner = dynamic_cast<const LightApp_DataOwner*>(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<const LightApp_DataSubOwner*>(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.
index 4314d7c223410254356db95c017924bdaf0981b4..624495948c08528d3a3b842ff2dcbdd1c2cfea11 100644 (file)
@@ -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 :