diff options
author | ExMix <ExMix@Youris-MacBook-Pro.local> | 2013-05-23 16:39:15 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:55:52 +0300 |
commit | 3dcd4e6032e63016f5276604fa550b73f7cc8029 (patch) | |
tree | c1ef48570491b4e8a2b27016925669b58014f162 /map | |
parent | 94779ad8708d5f1eb2974387e1e154453c0e01df (diff) |
added checking on the border of the world.
SetOrg call now only from animation task MoveScreenTask
Diffstat (limited to 'map')
-rw-r--r-- | map/navigator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/map/navigator.cpp b/map/navigator.cpp index 349fa5440f..d3dc949d3f 100644 --- a/map/navigator.cpp +++ b/map/navigator.cpp @@ -589,7 +589,10 @@ void Navigator::SetAngle(double angle) void Navigator::SetOrg(m2::PointD const & org) { - m_Screen.SetOrg(org); + ScreenBase tmp = m_Screen; + tmp.SetOrg(org); + if (CheckBorders(tmp)) + m_Screen = tmp; } void Navigator::Move(double azDir, double factor) |