From: Eduardo DAVILA Date: Wed, 1 Sep 2021 13:32:07 +0000 (+0200) Subject: #3230 vtk8itk4wx3-mingw64 MACOS X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6887672d8c869707d8a773eddcaaf12cc6ba1c92;p=creaMaracasVisu.git #3230 vtk8itk4wx3-mingw64 MACOS --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx index d7c6b68..7b8c144 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.cxx @@ -287,7 +287,8 @@ void vtkInteractorStyleBaseView::TransformCoordinate(double &X, double &Y, doubl double fP[4]; imageViewer->GetRenderer()->GetWorldPoint( fP ); - if ( fP[3] ){ + if ( fP[3] ) + { fP[0] /= fP[3]; fP[1] /= fP[3]; fP[2] /= fP[3]; diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx index 77d3843..81a146e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx @@ -117,7 +117,7 @@ void wxVtkBaseView::TransCoordScreenToWorld(double &X, double &Y, double &Z, int GetRenderer()->DisplayToWorld(); double fP[4]; GetRenderer()->GetWorldPoint( fP ); - if ( fP[3] ){ + if ( fP[3] ){ fP[0] /= fP[3]; fP[1] /= fP[3]; fP[2] /= fP[3]; @@ -149,7 +149,7 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z, X = xx; Y = yy; - Z=zz; + Z = zz; // EEDx5 //JCP 13/05/2009 @@ -175,7 +175,8 @@ void wxVtkBaseView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z, if (type!=2) { Z=fP[2]; - } + } + } //---------------------------------------------------------------------------