From 06d269dbb6c2a7748c1b4180240b8bb8cf8734d8 Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 16 Jan 2011 01:51:54 +0200 Subject: [PATCH] Fix msvc compilation. --- map/information_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map/information_display.cpp b/map/information_display.cpp index 3b2628f09e..508e648191 100644 --- a/map/information_display.cpp +++ b/map/information_display.cpp @@ -216,7 +216,7 @@ void InformationDisplay::drawRuler(DrawerYG * pDrawer) double scalerWidthXDiff = MercatorBounds::LatToY(pt0.x + scalerWidthLatDiff) - MercatorBounds::LatToY(pt0.x); double scalerWidthInPx = m_screen.GtoP(pt0).x - m_screen.GtoP(pt0 + m2::PointD(scalerWidthXDiff, 0)).x; - scalerWidthInPx = (lessThanMin || isInfinity) ? minPixSize : fabs(my::rounds(scalerWidthInPx)); + scalerWidthInPx = (lessThanMin || isInfinity) ? minPixSize : abs(my::rounds(scalerWidthInPx)); string scalerText;