]> Creatis software - creaMaracasVisu.git/commitdiff
#2855 creaMaracasVisu Bug New Normal - ColorLayer box spacing size not identified
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 24 Feb 2016 20:42:16 +0000 (21:42 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 24 Feb 2016 20:42:16 +0000 (21:42 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx

index 0d7cc29458bd18d695d9dc3de3cc895426173e94..b0fd0bb8a0155e23e363cd362da8855d70ade338 100644 (file)
@@ -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
             {