Commit dbfde864 authored by Francois Bertel's avatar Francois Bertel
Browse files

COMP:This was failing on VS8 because of overloaded versions of fabs(), anyway...

COMP:This was failing on VS8 because of overloaded versions of fabs(), anyway dx and dy are int, using abs() is more appropriate and faster.
parent e07253d9
......@@ -27,7 +27,7 @@
#include "vtkRenderer.h"
#include "vtkSphereSource.h"
vtkCxxRevisionMacro(vtkInteractorStyleTerrain, "1.12");
vtkCxxRevisionMacro(vtkInteractorStyleTerrain, "1.13");
vtkStandardNewMacro(vtkInteractorStyleTerrain);
//----------------------------------------------------------------------------
......@@ -202,7 +202,7 @@ void vtkInteractorStyleTerrain::Rotate()
if (rwi->GetShiftKey())
{
if (fabs(dx) >= fabs(dy))
if(abs(dx) >= abs(dy))
{
e = 0.0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment