From: vsr Date: Thu, 19 Jun 2008 08:34:36 +0000 (+0000) Subject: Fix pb with the rectanlge selection in VTK viewer. X-Git-Tag: V4_1_4a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b59c98c25a44def7ce3b18c6995a01c1dcd3d3b0;p=modules%2Fgui.git Fix pb with the rectanlge selection in VTK viewer. --- diff --git a/src/SVTK/SVTK_RectPicker.cxx b/src/SVTK/SVTK_RectPicker.cxx index fb5ced7f2..8d6cfe07b 100644 --- a/src/SVTK/SVTK_RectPicker.cxx +++ b/src/SVTK/SVTK_RectPicker.cxx @@ -261,7 +261,7 @@ namespace // and handle the transformation ourselves. vtkMatrix4x4 *aMatrix = vtkMatrix4x4::New(); aMatrix->DeepCopy(theRenderer->GetActiveCamera()-> - GetCompositePerspectiveTransformMatrix(1,0,1)); + GetCompositePerspectiveTransformMatrix( theRenderer->GetTiledAspectRatio(), 0, 1 ) ); for(vtkIdType aCellId = 0; aCellId < aNumCells; aCellId++){ vtkCell* aCell = theInput->GetCell(aCellId);