Don't squeeze tiny labels too much
authorEnrico Zini <enrico@enricozini.org>
Thu, 10 Dec 2009 10:49:47 +0000 (10:49 +0000)
committerEnrico Zini <enrico@enricozini.org>
Thu, 10 Dec 2009 10:49:47 +0000 (10:49 +0000)
src/fisheye.vala

index 5ce56e2e437e7ae8a2c8727b3cd965929f9de632..7053aed4569253bf1ca5e030be1aac226895d22e 100644 (file)
@@ -336,7 +336,7 @@ public class FisheyeList : Gtk.DrawingArea
                renderers[0].get_size(this, null, null, null, null, out cell_area.height);
                if (label_cache.length * cell_area.height >= allocation.height)
                {
-                       for (int y = 0; y < allocation.height; ++y)
+                       for (int y = 0; y < allocation.height; y += cell_area.height)
                        {
                                int idx = y * label_cache.length / allocation.height;
                                cell_area.y = y;