From 6887672d8c869707d8a773eddcaaf12cc6ba1c92 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 1 Sep 2021 15:32:07 +0200 Subject: [PATCH] #3230 vtk8itk4wx3-mingw64 MACOS --- .../wxWindows/widgets/vtkInteractorStyleBaseView.cxx | 3 ++- .../src/interface/wxWindows/widgets/wxVtkBaseView.cxx | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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]; - } + } + } //--------------------------------------------------------------------------- -- 2.45.1