From 7f26143b2c067b84c09f73094e80ddb684e6154a Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 12 Jun 2011 16:40:03 +0300 Subject: [PATCH] Warning fix. --- map/navigator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map/navigator.cpp b/map/navigator.cpp index 721da6ceb1..20c9f6dfe6 100644 --- a/map/navigator.cpp +++ b/map/navigator.cpp @@ -187,8 +187,8 @@ void Navigator::DoDrag(m2::PointD const & pt, double /*timeInSec*/) ScreenBase tmp = m_StartScreen; tmp = ShrinkInto(tmp, m_worldRect); - int dx = pt.x - m_StartPt1.x; - int dy = pt.y - m_StartPt1.y; + double dx = pt.x - m_StartPt1.x; + double dy = pt.y - m_StartPt1.y; tmp.Move(dx, 0); if (!CheckBorders(tmp))