Tiny ctree bug




I occasionally get this warning from GtkCTree (GTK+ 1.2.3):

Gtk-CRITICAL **: file gtkctree.c: line 4044 (gtk_ctree_is_viewable): assertion `node != NULL' failed.

The problem is this code in real_tree_move():

  if (gtk_ctree_is_viewable (ctree, node) ||
      gtk_ctree_is_viewable (ctree, new_sibling))

When new_sibling is NULL (which is valid), this outputs the warning.


Maybe it should be:

  if (gtk_ctree_is_viewable (ctree, node) ||
      (new_sibling && gtk_ctree_is_viewable (ctree, new_sibling)))


Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]