Salome HOME
Merge master branch into V9_dev.
[modules/geom.git] / src / VTKPlugin / VTKPlugin_GUI.cxx
index 332f62c0a6045eefa8b7309db3289f9e177148de..b595334c973cf7f54a72a7e1f5b5754122e230ef 100644 (file)
@@ -34,7 +34,6 @@
 #include "GeometryGUI.h"
 #include "GEOM_Operation.h"
 #include "GEOMBase.h"
-#include "GEOM_Displayer.h"
 #include "GEOM_GenericObjPtr.h"
 
 #include <SALOMEconfig.h>
@@ -100,11 +99,8 @@ bool VTKPlugin_GUI::exportVTK( SUIT_Desktop* parent )
 {
   SalomeApp_Application* app = getGeometryGUI()->getApp();
   if ( !app ) return false;
-  SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*> ( app->activeStudy() );
-  if ( !study ) return false;
 
-  SALOMEDS::Study_var dsStudy = GeometryGUI::ClientStudyToStudy( study->studyDS() );
-  GEOM::GEOM_IOperations_var op = GeometryGUI::GetGeomGen()->GetPluginOperations( dsStudy->StudyId(), "VTKPluginEngine" );
+  GEOM::GEOM_IOperations_var op = GeometryGUI::GetGeomGen()->GetPluginOperations( "VTKPluginEngine" );
   VTKOpPtr vtkOp = GEOM::IVTKOperations::_narrow( op );
   if ( vtkOp.isNull() ) return false;