From: Paul RASCLE Date: Thu, 2 Mar 2017 16:44:27 +0000 (+0100) Subject: selection mode workaround for embedded VTK viewer in a module : is it safe ? X-Git-Tag: SHAPER_2.7.0~1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=866b78e41ea976883e3490c3dc152cde05de5122;p=modules%2Fgui.git selection mode workaround for embedded VTK viewer in a module : is it safe ? --- diff --git a/src/LightApp/LightApp_VTKSelector.cxx b/src/LightApp/LightApp_VTKSelector.cxx index 4bcbead86..c5f81eecb 100644 --- a/src/LightApp/LightApp_VTKSelector.cxx +++ b/src/LightApp/LightApp_VTKSelector.cxx @@ -41,7 +41,7 @@ #include "SALOME_ListIO.hxx" #endif - +#include #ifndef DISABLE_VTKVIEWER #ifndef DISABLE_SALOMEOBJECT @@ -103,7 +103,7 @@ LightApp_SVTKDataOwner } } - return -1; + return ActorSelection; // workaround for embedded VTK viewer in a module : is it safe ? } /*! @@ -228,6 +228,7 @@ LightApp_VTKSelector for(; anIter != theList.end(); ++anIter){ const SUIT_DataOwner* aDataOwner = (*anIter).get(); if(const LightApp_SVTKDataOwner* anOwner = dynamic_cast(aDataOwner)){ + MESSAGE("aSelector->SetSelectionMode("<GetMode()<<");"); aSelector->SetSelectionMode(anOwner->GetMode()); Handle(SALOME_InteractiveObject) anIO = anOwner->IO();