mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Avoid recursive calls to gtk_tree_view_top_row_to_dy()
Commit 3f306a4042
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().
This commit is contained in:
parent
3d3f8697c0
commit
f77042aae2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user