From: akl Date: Fri, 14 Aug 2015 10:34:52 +0000 (+0400) Subject: Fix compilation error due to prev. commit X-Git-Tag: V7_7_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=baba035454c6dbce92fdb89b8edbd91d0218d4c8;p=modules%2Fgui.git Fix compilation error due to prev. commit --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 7ceb65ef1..94824e67f 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -1497,7 +1497,9 @@ void OCCViewer_ViewWindow::createToolBar() toolMgr()->append( OrthographicId, tid ); toolMgr()->append( PerspectiveId, tid ); +#if OCC_VERSION_LARGE > 0x06090000 toolMgr()->append( StereoId, tid ); +#endif toolMgr()->append( ResetId, tid ); } @@ -1655,8 +1657,10 @@ void OCCViewer_ViewWindow::onProjectionType( QAction* theAction ) myModel->setProjectionType(Perspective); aCamera->SetProjectionType ( Graphic3d_Camera::Projection_Perspective ); } +#if OCC_VERSION_LARGE > 0x06090000 if (toolMgr()->action( StereoId )->isChecked()) aCamera->SetProjectionType ( Graphic3d_Camera::Projection_Stereo ); +#endif aView3d->Redraw(); onViewFitAll(); }