From 4195d2f9164d7ce38427902effcd0a86b1f2df9e Mon Sep 17 00:00:00 2001 From: Dmitry Kunin Date: Mon, 10 Feb 2014 15:29:57 +0300 Subject: [PATCH] [codereview] my::Abs --- drape_frontend/line_shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drape_frontend/line_shape.cpp b/drape_frontend/line_shape.cpp index 8bf3cd4b38..1943faa3da 100644 --- a/drape_frontend/line_shape.cpp +++ b/drape_frontend/line_shape.cpp @@ -129,11 +129,11 @@ namespace df const bool clockWise = cross < 0; const float directionFix = ( clockWise ? +1 : -1 ); - const float absAngle = fabs(joinAngle); + const float absAngle = my::Abs(joinAngle); if (absAngle > MIN_JOIN_ANGLE && absAngle < MAX_JOIN_ANGLE) { const float joinHeight = (m_params.m_join == MiterJoin) - ? fabs(hw / cos(joinAngle/2)) + ? my::Abs(hw / cos(joinAngle/2)) : 2*hw; // ensure we have enough space for sector // Add join triangles