From: Eduardo DAVILA Date: Wed, 24 Feb 2016 20:42:16 +0000 (+0100) Subject: #2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaMaracasVisu.git;a=commitdiff_plain;h=defb83cadfdd4d76a086c59d9eab57bfb527e025 #2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified --- 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 {