From: vsr Date: Tue, 14 Jun 2011 09:02:30 +0000 (+0000) Subject: 0021299: EDF 1892 GEOM: salome.sg.FitAll() command doesn't work in OCC viewer X-Git-Tag: V6_3_1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28c2d59cf3819238365a9e0ee649a5278bb991d4;p=modules%2Fgui.git 0021299: EDF 1892 GEOM: salome.sg.FitAll() command doesn't work in OCC viewer --- diff --git a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx index e1f45245e..3ad966359 100644 --- a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx +++ b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx @@ -667,8 +667,8 @@ void SALOMEGUI_Swig::FitAll() if ( window ) { if ( dynamic_cast( window ) ) ( dynamic_cast( window ) )->onFitAll(); - else if ( dynamic_cast( window ) ) - ( dynamic_cast( window ) )->onFitAll(); + else if ( dynamic_cast( window ) ) + ( dynamic_cast( window ) )->onFitAll(); else if ( dynamic_cast( window ) ) ( dynamic_cast( window ) )->onFitAll(); } @@ -694,8 +694,8 @@ void SALOMEGUI_Swig::ResetView() if ( window ) { if ( dynamic_cast( window ) ) (dynamic_cast( window ))->onResetView(); - else if ( dynamic_cast( window ) ) - (dynamic_cast( window ))->onResetView(); + else if ( dynamic_cast( window ) ) + (dynamic_cast( window ))->onResetView(); else if ( dynamic_cast( window ) ) (dynamic_cast( window ))->onFitAll(); // VSR: there is no 'ResetView' functionality for Plot2d viewer, @@ -756,20 +756,20 @@ static void setView( int view ) break; } } - else if ( dynamic_cast( window ) ) { + else if ( dynamic_cast( window ) ) { switch( myView ) { case __ViewTop: - (dynamic_cast( window ))->onTopView(); break; + (dynamic_cast( window ))->onTopView(); break; case __ViewBottom: - (dynamic_cast( window ))->onBottomView(); break; + (dynamic_cast( window ))->onBottomView(); break; case __ViewLeft: - (dynamic_cast( window ))->onLeftView(); break; + (dynamic_cast( window ))->onLeftView(); break; case __ViewRight: - (dynamic_cast( window ))->onRightView(); break; + (dynamic_cast( window ))->onRightView(); break; case __ViewFront: - (dynamic_cast( window ))->onFrontView(); break; + (dynamic_cast( window ))->onFrontView(); break; case __ViewBack: - (dynamic_cast( window ))->onBackView(); break; + (dynamic_cast( window ))->onBackView(); break; default: break; }