From 10d39a7e58bf43ed549c0f1308c83a3485f2d9ae Mon Sep 17 00:00:00 2001 From: ptv Date: Mon, 27 Oct 2008 05:50:16 +0000 Subject: [PATCH] compilation on Windows --- src/SVTK/SVTK_CubeAxesActor2D.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_CubeAxesActor2D.cxx b/src/SVTK/SVTK_CubeAxesActor2D.cxx index 4f109801c..f8e65b9b9 100644 --- a/src/SVTK/SVTK_CubeAxesActor2D.cxx +++ b/src/SVTK/SVTK_CubeAxesActor2D.cxx @@ -202,11 +202,12 @@ static void ChangeValues(vtkFloatingPointType* aArray1, { vtkFloatingPointType tmp=-1000; if (!theY){ - for (int i=0; i<4; i++){ + int i=0; + for (; i<4; i++){ tmp = aArray1[i]; aArray1[i] = aArray2[i]; aArray2[i] = tmp; } #ifndef WIN32 - for(int i=0;i<2; i++){ + for(i=0;i<2; i++){ #else for(i=0;i<2; i++){ #endif -- 2.39.2