[Xfce4-commits] <midori:master> Bail out of completion resizing if cell height is 0

Christian Dywan noreply at xfce.org
Sat Mar 30 23:30:01 CET 2013


Updating branch refs/heads/master
         to dc580c6e251dd9f9c3b646dad2df8b5f42a904d5 (commit)
       from 0db285a97b19c88dd853e99d32f53d47c28e19f7 (commit)

commit dc580c6e251dd9f9c3b646dad2df8b5f42a904d5
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Mar 30 22:54:31 2013 +0100

    Bail out of completion resizing if cell height is 0
    
    Fixes: https://bugs.launchpad.net/midori/+bug/1162238

 midori/midori-locationaction.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index e3af218..f39c1af 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -510,6 +510,8 @@ midori_location_action_popup_position (MidoriLocationAction* action,
     gtk_tree_view_column_cell_get_size (
         gtk_tree_view_get_column (GTK_TREE_VIEW (action->treeview), 0),
         NULL, NULL, NULL, NULL, &height);
+    if (height == 0)
+        return;
     gtk_widget_style_get (action->treeview, "vertical-separator", &sep, NULL);
     height += sep;
 


More information about the Xfce4-commits mailing list