summaryrefslogtreecommitdiff
diff options
authorNic d'Offay <nicolas.doffay@canonical.com>2012-08-09 15:28:50 +0100
committerNic d'Offay <nicolas.doffay@canonical.com>2012-08-09 15:28:50 +0100
commit30e7a035d242795694f37caf9bf2be9bd51661da (patch)
tree86b2834c72208e365a021cb6038218e5d6e7f95f
parent7dafded1aa4111bb417021d0bbd14ed7d99f5baf (diff)
Fixed Bug #998752
(bzr r2540.6.1)
-rw-r--r--dash/LensBar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dash/LensBar.cpp b/dash/LensBar.cpp
index 33be3f098..0fefc0de2 100644
--- a/dash/LensBar.cpp
+++ b/dash/LensBar.cpp
@@ -131,7 +131,7 @@ void LensBar::DrawContent(nux::GraphicsEngine& gfx_context, bool force_draw)
for (auto icon: icons_)
{
- if (icon->active)
+ if (icon->active && icon->IsVisible())
{
nux::Geometry const& geo = icon->GetGeometry();
int middle = geo.x + geo.width/2;
@@ -147,7 +147,6 @@ void LensBar::DrawContent(nux::GraphicsEngine& gfx_context, bool force_draw)
nux::color::White);
break;
-
}
}