]> Creatis software - clitk.git/blobdiff - utilities/CxImage/ximasel.cpp
Allow to save vtk mesh in RTStruct2Image
[clitk.git] / utilities / CxImage / ximasel.cpp
index 669b793e8604180013c658bfdd6b721ce9096199..3e7d20298342be5971b3b88e634180808fd1a959 100644 (file)
@@ -137,8 +137,8 @@ bool CxImage::SelectionAddEllipse(RECT r, BYTE level)
        if (pSelection==NULL) SelectionCreate();
        if (pSelection==NULL) return false;
 
-       long xradius = abs(r.right - r.left)/2;
-       long yradius = abs(r.top - r.bottom)/2;
+       long xradius = labs(r.right - r.left)/2;
+       long yradius = labs(r.top - r.bottom)/2;
        if (xradius==0 || yradius==0) return false;
 
        long xcenter = (r.right + r.left)/2;