diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-08-04 21:47:54 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-08-04 21:47:54 -0400 |
commit | 519eae87296fecf4ee06e680f7abdeb8864ae427 (patch) | |
tree | 64e79f94f4bae3dfde02d5300e2d6dd2944c49a3 /gtk/gtkscale.c | |
parent | 3a34295b9c3e12ece03c4c53ea7d298699babeaf (diff) | |
download | gtk+-519eae87296fecf4ee06e680f7abdeb8864ae427.tar.gz |
Don't allocate space for "" in scale marks
Turns out GtkBuilder ends up creating marks with non-NULL
empty texts, so ignore those. Bug 614443, reported by Filippo Argiolas.
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r-- | gtk/gtkscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index c8a82cce30..eb930ba6ee 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -852,7 +852,7 @@ gtk_scale_get_mark_label_size (GtkScale *scale, { GtkScaleMark *mark = m->data; - if (mark->markup) + if (mark->markup && *mark->markup) { pango_layout_set_markup (layout, mark->markup, -1); pango_layout_get_pixel_extents (layout, NULL, &logical_rect); |