Blame SOURCES/baobab-3.14.2-Fix-Zoom-out-item-sensitivity-for-treemap-chart.patch

f61cae
From c017dcf93d09b88a8896e610b95a1f956cad37c1 Mon Sep 17 00:00:00 2001
f61cae
From: Ondrej Holy <oholy@redhat.com>
f61cae
Date: Wed, 24 Jun 2015 14:46:17 +0200
f61cae
Subject: [PATCH] Fix "Zoom out" item sensitivity for treemap chart
f61cae
f61cae
can_zoom_out() returns TRUE if more visible children items are
f61cae
available regardless of MAX_DEPTH. This patch change can_zoom_out()
f61cae
behavior to return FALSE if MAX_DEPTH is reached.
f61cae
f61cae
https://bugzilla.gnome.org/show_bug.cgi?id=751436
f61cae
---
f61cae
 src/baobab-treemap.vala | 4 ++--
f61cae
 1 file changed, 2 insertions(+), 2 deletions(-)
f61cae
f61cae
diff --git a/src/baobab-treemap.vala b/src/baobab-treemap.vala
f61cae
index 68316b7..f134424 100644
f61cae
--- a/src/baobab-treemap.vala
f61cae
+++ b/src/baobab-treemap.vala
f61cae
@@ -190,11 +190,11 @@ namespace Baobab {
f61cae
         }
f61cae
 
f61cae
         protected override bool can_zoom_out () {
f61cae
-            return more_visible_children;
f61cae
+            return (max_depth < MAX_DEPTH) && more_visible_children;
f61cae
         }
f61cae
 
f61cae
         protected override bool can_zoom_in () {
f61cae
             return (max_visible_depth > 1);
f61cae
         }
f61cae
     }
f61cae
-}
f61cae
\ No newline at end of file
f61cae
+}
f61cae
-- 
f61cae
2.4.4
f61cae