]> Creatis software - creaContours.git/commitdiff
*** empty log message ***
authordonadio <donadio>
Fri, 5 Jun 2009 18:30:57 +0000 (18:30 +0000)
committerdonadio <donadio>
Fri, 5 Jun 2009 18:30:57 +0000 (18:30 +0000)
lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx

index 6a2b6a8fd6269262c220762479d9b090680d5d2d..4ce7c46ba6da87c1fc1e0b43b69ee309f6b4c774 100644 (file)
@@ -1073,7 +1073,7 @@ void wxContourMainFrame::openContours( FILE *pFile, int version )
 
                if (dial->GetReturnCode() == wxID_OK)
                {
-                       int typeOfTransformation = radioOpts->GetSelection();
+                       typeOfTransformation = radioOpts->GetSelection();
                        transform = true;
                }
        
@@ -1102,7 +1102,7 @@ void wxContourMainFrame::openContours( FILE *pFile, int version )
 
                        manModelContour =  kernelManager->factoryManualContourModel(typeContourModel);
                        manModelContour->Open(pFile);
-                               
+
                        if (transform==true)
                        {
                                if (typeOfTransformation==0)
@@ -1110,16 +1110,13 @@ void wxContourMainFrame::openContours( FILE *pFile, int version )
                                        double transX, transY;
                                        transX = (double) imageDim[0]/tempDim[0];
                                        transY = (double) imageDim[1]/tempDim[1];
-
                                        manModelContour->Transform_Ax_Plus_B(transX,0,transY,0);
                                }
-
                                else if (typeOfTransformation==1)
                                {
                                        double transX, transY;
                                        transX = (double) tempSpac[0]/imageSpac[0];
                                        transY = (double) tempSpac[1]/imageSpac[1];
-
                                        manModelContour->Transform_Ax_Plus_B(transX,0,transY,0);
                                }
                        }