]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
These functionality was removed in connection with bug in mantis: 0030241: The FitAll... V2_2_0 V2_2_0_beta2
authornds <nds@opencascade.com>
Fri, 18 Sep 2009 12:56:36 +0000 (12:56 +0000)
committernds <nds@opencascade.com>
Fri, 18 Sep 2009 12:56:36 +0000 (12:56 +0000)
Taking into consideration that this functionality was improved in previous integration, the decision about unnecessary of these three lines were taken.

src/VTKViewer/VTKViewer_Utilities.cxx

index 51f0c03436720870383a56a8c9bbd1169808047c..90838fd38a6434e0f95cfaf8408dc11836e2c881 100755 (executable)
@@ -124,11 +124,6 @@ ResetCamera(vtkRenderer* theRenderer,
     aCamera->SetPosition(aCenter[0]+aDistance*aViewPlaneNormal[0],
                         aCenter[1]+aDistance*aViewPlaneNormal[1],
                         aCenter[2]+aDistance*aViewPlaneNormal[2]);
-
-    // find size of the window
-    int* aWinSize = theRenderer->GetSize();
-    if(aWinSize[0] < aWinSize[1]) 
-      aWidth *= vtkFloatingPointType(aWinSize[1])/vtkFloatingPointType(aWinSize[0]);
     
     if(theUsingZeroFocalPoint) 
       aWidth *= sqrt(2.0);