]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix pb with the rectanlge selection in VTK viewer.
authorvsr <vsr@opencascade.com>
Thu, 19 Jun 2008 08:34:36 +0000 (08:34 +0000)
committervsr <vsr@opencascade.com>
Thu, 19 Jun 2008 08:34:36 +0000 (08:34 +0000)
src/SVTK/SVTK_RectPicker.cxx

index fb5ced7f2d69f69b7189c30c00af63869f90ff85..8d6cfe07b8b3307eddf25cd5d38580ee392529ab 100644 (file)
@@ -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);