forked from organicmaps/organicmaps
added checking on the border of the world.
SetOrg call now only from animation task MoveScreenTask
This commit is contained in:
parent
94779ad870
commit
3dcd4e6032
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue