diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-04-07 13:42:16 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:14:09 +0300 |
commit | 932855c119ecf34a34708f777bda6ac2fb51cc95 (patch) | |
tree | d6a57dd7ed12e42174ade1bb4192d89b09386fe7 /map/ruler.cpp | |
parent | 07e8fcb62ff94eb4aac5994bc5b785882fc60455 (diff) |
show ruler on double tap and scale by buttons
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r-- | map/ruler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp index cece61d3c9..54d6ddba8c 100644 --- a/map/ruler.cpp +++ b/map/ruler.cpp @@ -551,16 +551,24 @@ void Ruler::AnimateShow() { setIsVisible(true); frame->ShowAnimate(false); + m_framework->Invalidate(); } else if (isVisible() && (frame->IsAnimActive() && frame->IsHidingAnim())) + { frame->ShowAnimate(false); + m_framework->Invalidate(); + } } void Ruler::AnimateHide() { + LOG(LINFO, ("Animate hide")); RulerFrame * frame = GetMainFrame(); if (isVisible() && (!frame->IsAnimActive() || !frame->IsHidingAnim())) + { frame->HideAnimate(true); + m_framework->Invalidate(); + } } void Ruler::layout() |