From edeebeed64b1ececdf66d5263f073e8090553961 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 23 Nov 2014 12:00:04 +0100 Subject: clock: Check allocated size before creating the shadow pixbuf Based on gnome-panel commit: d98b58770dec2f1434cb0acce487e85514ca9bb0 From: Carlos Garcia Campos --- applets/clock/clock-map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'applets/clock') diff --git a/applets/clock/clock-map.c b/applets/clock/clock-map.c index bb7fee5c..8e02b273 100644 --- a/applets/clock/clock-map.c +++ b/applets/clock/clock-map.c @@ -662,7 +662,8 @@ clock_map_display (ClockMap *this) { ClockMapPrivate *priv = PRIVATE (this); - clock_map_render_shadow (this); + if (priv->width > 0 || priv->height > 0) + clock_map_render_shadow (this); gtk_widget_queue_draw (GTK_WIDGET (this)); time (&priv->last_refresh); -- cgit v1.2.1