]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix compilation error when VTKVIEWER disabled
authorNicolas Geimer <nicolas.geimer@edf.fr>
Tue, 28 Jul 2015 08:43:34 +0000 (10:43 +0200)
committervsr <vsr@opencascade.com>
Tue, 28 Jul 2015 16:27:31 +0000 (19:27 +0300)
src/SALOME_SWIG/SALOMEGUI_Swig.cxx

index f5255da9a525d2156177c76a3808149f0f37a718..d1ee880c200091ac3a2f669aca882d4c39d36cee 100644 (file)
@@ -945,6 +945,7 @@ static void setViewParameter( int parameter, QList<double>& 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<SVTK_ViewWindow*>( window ) ) {       
            if ( vtkRenderer* ren = svtk->getRenderer()) {                  
              if ( vtkCamera* camera = ren->GetActiveCamera() ) {
@@ -981,6 +982,7 @@ static void setViewParameter( int parameter, QList<double>& values ) {
             }
            svtk->Repaint();
           }
+#endif
         }
       }
     }