forked from organicmaps/organicmaps
review fixes
This commit is contained in:
parent
244b5b6807
commit
5305dde63f
1 changed files with 2 additions and 2 deletions
|
@ -662,10 +662,10 @@ bool Framework::LoadState()
|
|||
return false;
|
||||
|
||||
// additional check for valid rect
|
||||
if (!m_scales.GetWorldRect().IsRectInside(rect.GetGlobalRect()))
|
||||
m2::RectD r = rect.GetGlobalRect();
|
||||
if (!m_scales.GetWorldRect().IsRectInside(r))
|
||||
return false;
|
||||
|
||||
m2::RectD r = rect.GetGlobalRect();
|
||||
CheckMinMaxVisibleScale(r);
|
||||
|
||||
double const dx = r.SizeX();
|
||||
|
|
Loading…
Add table
Reference in a new issue