From defb83cadfdd4d76a086c59d9eab57bfb527e025 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 24 Feb 2016 21:42:16 +0100 Subject: [PATCH] #2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified --- .../ColorLayerImageViewPanel.cxx | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx index 0d7cc29..b0fd0bb 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx @@ -285,17 +285,22 @@ void ColorLayerImageViewPanel::SetImage(vtkImageData *img) int typeOfTransformation; // In case of the option is set to create a dialog box. if (_fitting_mode == -1) - { - bool transformOkDlg; - wxString msg = _T("The image resolution of both images are not compatible. Do you want to tranform it? "); - wxDlgTransformByDimensionBySpacingByPixel dlg; - dlg.GetTransformType(this,msg,typeOfTransformation,transformOkDlg); - // CM Reset the default value (Pixel i.e. 3) if the dialog box returned an inappropriate value. - if (transformOkDlg == false) - typeOfTransformation = 3; - } - else - typeOfTransformation = _fitting_mode; + { + bool transformOkDlg; + wxString msg = _T("The image resolution of both images are not compatible. Do you want to tranform it? "); + wxDlgTransformByDimensionBySpacingByPixel dlg; + dlg.GetTransformType(this,msg,typeOfTransformation,transformOkDlg); + // CM Reset the default value (Pixel i.e. 3) if the dialog box returned an inappropriate value. + if (transformOkDlg == false) + { + typeOfTransformation = 3; + } + } else { + typeOfTransformation = _fitting_mode; + } + +printf("EED ColorLayerImageViewPanel::SetImage %d\n", typeOfTransformation ); + //EO CM if (typeOfTransformation==1) // make dimensions equals { -- 2.47.1