Commit 618f98bc authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington
Browse files

return if the icon being set is NULL. This may be fixing a symptom rather

1999-12-20  Havoc Pennington  <hp@redhat.com>

* libnautilus/gnome-icon-container.c (set_kbd_current): return if
the icon being set is NULL. This may be fixing a symptom rather
than a problem.
parent c4a26bb2
......@@ -940,6 +940,9 @@ set_kbd_current (GnomeIconContainer *container,
priv->kbd_current = icon;
if (priv->kbd_current == NULL)
return;
icon_get_text_bounding_box (icon, &x1, &y1, &x2, &y2);
gnome_canvas_item_set (priv->kbd_navigation_rectangle,
......
......@@ -940,6 +940,9 @@ set_kbd_current (GnomeIconContainer *container,
priv->kbd_current = icon;
if (priv->kbd_current == NULL)
return;
icon_get_text_bounding_box (icon, &x1, &y1, &x2, &y2);
gnome_canvas_item_set (priv->kbd_navigation_rectangle,
......
......@@ -940,6 +940,9 @@ set_kbd_current (GnomeIconContainer *container,
priv->kbd_current = icon;
if (priv->kbd_current == NULL)
return;
icon_get_text_bounding_box (icon, &x1, &y1, &x2, &y2);
gnome_canvas_item_set (priv->kbd_navigation_rectangle,
......
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