if (SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>(myVisuGUI)) {
Handle(SALOME_InteractiveObject) anIO;
CORBA::Object_var anObject = VISU::GetSelectedObj(myVisuGUI, &anIO);
- myIO = anIO;
if (CORBA::is_nil(anObject)) return;
+
+ if (!anIO.IsNull())
+ myIO = anIO;
+
PortableServer::ServantBase_var aServant = VISU::GetServant(anObject);
if (!aServant.in()) return;
e->accept();
ClickOnHelp();
}
-}
\ No newline at end of file
+}