mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Don't crash when updating the icon on a GtkScaleButton
with a non-NULL
empty icon list
This commit is contained in:
parent
1fd03acf9d
commit
3f329b2d0f
@ -884,7 +884,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
|
||||
const char *name;
|
||||
guint num_icons;
|
||||
|
||||
if (!priv->icon_list || priv->icon_list[0][0] == '\0')
|
||||
if (!priv->icon_list || !priv->icon_list[0] || priv->icon_list[0][0] == '\0')
|
||||
{
|
||||
gtk_button_set_icon_name (GTK_BUTTON (priv->button), "image-missing");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user