Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-10-11 22:52:33 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:45:10 +0300
commitde92bcb68e0bdaf631e7338fa84e1e7e838b28f3 (patch)
tree8879d1286fa6e79ae13dec5c212c885eeada5b2c /map/address_finder.cpp
parent635addb5156504ea582c7e5c54da45e03cd40495 (diff)
Framework::GetAddressInfo input point should be in screen coordinates.
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r--map/address_finder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/map/address_finder.cpp b/map/address_finder.cpp
index 5c829db461..4b2c9d8be0 100644
--- a/map/address_finder.cpp
+++ b/map/address_finder.cpp
@@ -469,8 +469,11 @@ namespace
}
}
-void Framework::GetAddressInfo(m2::PointD const & pt, AddressInfo & info) const
+void Framework::GetAddressInfo(m2::PointD const & pxPoint, AddressInfo & info) const
{
+ // Input point is in pixel coordinates.
+ m2::PointD const pt = PtoG(pxPoint);
+
info.Clear();
info.m_country = GetCountryName(pt);