if(anActor){
anActor->Highlight( this, aSelectionEvent, true );
}else{
- if(myLastHighlitedActor && myLastHighlitedActor != anActor)
+ if(myLastHighlitedActor.GetPointer() && myLastHighlitedActor.GetPointer() != anActor)
myLastHighlitedActor->Highlight( this, aSelectionEvent, false );
GetSelector()->ClearIObjects();
}
anIsChanged |= anActor->PreHighlight( this, aSelectionEvent, true );
}
- if(myLastPreHighlitedActor && myLastPreHighlitedActor != anActor)
+ if(myLastPreHighlitedActor.GetPointer() && myLastPreHighlitedActor.GetPointer() != anActor)
anIsChanged |= myLastPreHighlitedActor->PreHighlight( this, aSelectionEvent, false );
myLastPreHighlitedActor = anActor;
bool myShiftState;
int ForcedState;
- SALOME_Actor* myLastHighlitedActor;
- SALOME_Actor* myLastPreHighlitedActor;
+ vtkSmartPointer<SALOME_Actor> myLastHighlitedActor;
+ vtkSmartPointer<SALOME_Actor> myLastPreHighlitedActor;
//! "Increment" for pan/rotate/zoom operations
int mySpeedIncrement;