X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLightApp%2FLightApp_VTKSelector.cxx;h=70db9624fa29aab715200b7910c4fbb30dfb4e8d;hb=331294345d3e1716fbf79ae25a2851011729be79;hp=39847cffb308ec9e9e259f2f99b89419429e4b30;hpb=c4b058d18583af7f94042eb55d4b933dd222d2e6;p=modules%2Fgui.git diff --git a/src/LightApp/LightApp_VTKSelector.cxx b/src/LightApp/LightApp_VTKSelector.cxx index 39847cffb..70db9624f 100644 --- a/src/LightApp/LightApp_VTKSelector.cxx +++ b/src/LightApp/LightApp_VTKSelector.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -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(); @@ -237,7 +238,7 @@ LightApp_VTKSelector 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(),""); + new SALOME_InteractiveObject(anOwner->entry().toUtf8(),""); aSelector->AddIObject(anIO); anAppendList.Append(anIO); }