Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-06-29 04:44:19 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:40:23 +0300
commit7160c3f57e7145f78cd40c3541cc06d4c4dad992 (patch)
tree3c55a74b767fd9659eef9d014dfbccab289bb4ef /gui/controller.cpp
parentc0e05ff9d359ff2b111a51b4a2bc99bb90cf205d (diff)
fixed bug with "frozen screen while navigating".
Diffstat (limited to 'gui/controller.cpp')
-rw-r--r--gui/controller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/controller.cpp b/gui/controller.cpp
index 24d20541ce..5d8cb73e37 100644
--- a/gui/controller.cpp
+++ b/gui/controller.cpp
@@ -28,14 +28,14 @@ namespace gui
Controller::~Controller()
{}
- void Controller::SelectElements(m2::PointD const & pt, elem_list_t & l)
+ void Controller::SelectElements(m2::PointD const & pt, elem_list_t & l, bool onlyVisible)
{
for (elem_list_t::const_iterator it = m_Elements.begin();
it != m_Elements.end();
++it)
{
shared_ptr<gui::Element> const & e = *it;
- if (e->roughHitTest(pt) && e->hitTest(pt))
+ if ((!onlyVisible || e->isVisible()) && e->roughHitTest(pt) && e->hitTest(pt))
l.push_back(e);
}
}
@@ -44,7 +44,7 @@ namespace gui
{
elem_list_t l;
- SelectElements(pt, l);
+ SelectElements(pt, l, true);
/// selecting first hit-tested element from the list
if (!l.empty())