diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-10-21 18:36:00 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:25 +0300 |
commit | 41fa537d4232414dfa3a2de4bdbb99eb4bba33c3 (patch) | |
tree | a0e4a765e17555ecc583a57afa8a5d4150b186b4 /map/ruler.hpp | |
parent | 16aaf56c307001b9897bf9f6febf4e911f2a9009 (diff) |
Correct initialization of imperial/metric measurement system.
Diffstat (limited to 'map/ruler.hpp')
-rw-r--r-- | map/ruler.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map/ruler.hpp b/map/ruler.hpp index c0150a06d0..84fc3a1bf7 100644 --- a/map/ruler.hpp +++ b/map/ruler.hpp @@ -47,6 +47,9 @@ private: vector<pair<string, double> > m_units; ConversionFn m_conversionFn; + bool m_isInitialized; + bool m_hasPendingUpdate; + void initYards(); void initMetres(); void initFeets(); @@ -60,6 +63,7 @@ public: }; Ruler(Params const & p); + void setup(); void setScreen(ScreenBase const & screen); ScreenBase const & screen() const; |