diff --git a/GUI/studygraphicswidget.cpp b/GUI/studygraphicswidget.cpp index eb900eff..48ed7ff6 100644 --- a/GUI/studygraphicswidget.cpp +++ b/GUI/studygraphicswidget.cpp @@ -1114,7 +1114,7 @@ template double get_distance3( { if (image.IsNull()) return -1.0; if (!ivariant) return -1.0; - if (x0 < 0.0 || y0 < 0.0 || x1 < 0.0 || y1 < 0.0) return -1; + if (x0 < 0.0 || y0 < 0.0 || x1 < 0.0 || y1 < 0.0) return -1.0; itk::ContinuousIndex idx0; itk::ContinuousIndex idx1; itk::Point j0;