From: Nicolas Geimer Date: Tue, 28 Jul 2015 08:43:34 +0000 (+0200) Subject: Fix compilation error when VTKVIEWER disabled X-Git-Tag: V7_7_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f44890c07c1534a68618b145b8e7e747e64c3f2;p=modules%2Fgui.git Fix compilation error when VTKVIEWER disabled --- diff --git a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx index f5255da9a..d1ee880c2 100644 --- a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx +++ b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx @@ -945,6 +945,7 @@ static void setViewParameter( int parameter, QList& values ) { virtual void Execute() { if ( LightApp_Application* anApp = getApplication() ) { if ( SUIT_ViewWindow* window = anApp->desktop()->activeWindow() ) { +#ifndef DISABLE_VTKVIEWER if ( SVTK_ViewWindow* svtk = dynamic_cast( window ) ) { if ( vtkRenderer* ren = svtk->getRenderer()) { if ( vtkCamera* camera = ren->GetActiveCamera() ) { @@ -981,6 +982,7 @@ static void setViewParameter( int parameter, QList& values ) { } svtk->Repaint(); } +#endif } } }