forked from organicmaps/organicmaps
ruler.cpp measurement units update fix
This commit is contained in:
parent
eb85b34618
commit
63cd80e48c
1 changed files with 2 additions and 2 deletions
|
@ -182,6 +182,8 @@ void Ruler::layout()
|
|||
m_conversionFn = &MeasurementUtils::MetersToYards;
|
||||
break;
|
||||
}
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
void Ruler::setMinPxWidth(unsigned minPxWidth)
|
||||
|
@ -302,8 +304,6 @@ vector<m2::AnyRectD> const & Ruler::boundRects() const
|
|||
|
||||
void Ruler::cache()
|
||||
{
|
||||
layout();
|
||||
|
||||
graphics::Screen * cs = m_controller->GetCacheScreen();
|
||||
|
||||
m_dl.reset();
|
||||
|
|
Loading…
Add table
Reference in a new issue