forked from organicmaps/organicmaps
Update m_StartScreen only when m_Screen changed.
This commit is contained in:
parent
cc2207b247
commit
43e906bfdd
1 changed files with 4 additions and 2 deletions
|
@ -64,10 +64,12 @@ void Navigator::SetFromRect(m2::AnyRectD const & r, uint32_t tileSize, double vi
|
|||
tmp.SetFromRect(r);
|
||||
tmp = ScaleInto(tmp, worldR);
|
||||
if (CheckMaxScale(tmp, tileSize, visualScale))
|
||||
{
|
||||
m_Screen = tmp;
|
||||
|
||||
if (!m_InAction)
|
||||
m_StartScreen = tmp;
|
||||
if (!m_InAction)
|
||||
m_StartScreen = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
void Navigator::CenterViewport(m2::PointD const & p)
|
||||
|
|
Loading…
Add table
Reference in a new issue