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
             {