From: nds Date: Fri, 18 Sep 2009 12:56:36 +0000 (+0000) Subject: These functionality was removed in connection with bug in mantis: 0030241: The FitAll... X-Git-Tag: V2_2_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4bf7ac108ccc5814232e8d3f829047bd07d5e6ff;p=modules%2Fgui.git These functionality was removed in connection with bug in mantis: 0030241: The FitAll function does not work properly in case of 2 active displayed VTK viewers. Taking into consideration that this functionality was improved in previous integration, the decision about unnecessary of these three lines were taken. --- diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 51f0c0343..90838fd38 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -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);