From f50832864ecb144fc3c6804b0b728533bf413cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 8 Oct 2017 20:15:39 +0200 Subject: [PATCH] scalebutton: Fix comparison for empty icon list --- gtk/gtkscalebutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 7e78735bb8..8ffd37867b 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -976,7 +976,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button) const gchar *name; guint num_icons; - if (!priv->icon_list || ((char*)priv->icon_list)[0] == '\0') + if (!priv->icon_list || priv->icon_list[0][0] == '\0') { gtk_image_set_from_icon_name (GTK_IMAGE (priv->image), "image-missing",