From 4bf7ac108ccc5814232e8d3f829047bd07d5e6ff Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 18 Sep 2009 12:56:36 +0000 Subject: [PATCH] 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. --- src/VTKViewer/VTKViewer_Utilities.cxx | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.39.2