Commit f77042aa authored by Kristian Rietveld's avatar Kristian Rietveld

Avoid recursive calls to gtk_tree_view_top_row_to_dy()

Commit 3f306a40 made it possible for
gtk_tree_view_top_row_to_dy() to be called recursively.  (In a different
way than was already guarded for).  This caused a single test case in
the scrolling test suite to fail.  We now also guard for recursive calls at
the beginning of gtk_tree_view_top_row_to_dy().
parent 3d3f8697
......@@ -6432,6 +6432,10 @@ gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view)
GtkRBNode *node;
int new_dy;
/* Avoid recursive calls */
if (tree_view->priv->in_top_row_to_dy)
return;
if (tree_view->priv->top_row)
path = gtk_tree_row_reference_get_path (tree_view->priv->top_row);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment