]> Creatis software - clitk.git/commitdiff
Fixed compiling error by MSVC++
authorsrit <srit>
Sun, 20 Mar 2011 20:00:49 +0000 (20:00 +0000)
committersrit <srit>
Sun, 20 Mar 2011 20:00:49 +0000 (20:00 +0000)
vv/vvSlicer.cxx

index 86824a2c7a0932e656273410ea093c6d0eda75c8..5a15a16a3188f218f031004cd0397f4f69a777da 100644 (file)
@@ -1220,7 +1220,7 @@ double vvSlicer::GetScalarComponentAsDouble(vtkImageData *image, int X, double Y
       iy > image->GetWholeExtent()[3] ||
       iz < image->GetWholeExtent()[4] ||
       iz > image->GetWholeExtent()[5] )
-    return sqrt(-1);
+    return sqrt(-1.);
 
   image->SetUpdateExtent(ix, ix, iy, iy, iz, iz);
   image->Update();