scale: don't add scale label for empty markup

This is a regression from the gadget port.
This commit is contained in:
Cosimo Cecchi 2016-03-02 11:16:39 -08:00
parent a87e18ca6f
commit b1144a73de

View File

@ -2018,7 +2018,7 @@ gtk_scale_add_mark (GtkScale *scale,
NULL,
gtk_scale_render_mark_indicator,
mark, NULL);
if (mark->markup)
if (mark->markup && *mark->markup)
mark->label_gadget =
gtk_css_custom_gadget_new ("label",
GTK_WIDGET (scale), mark->gadget,