diff options
author | infirit <[email protected]> | 2014-11-23 12:00:04 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-23 12:00:04 +0100 |
commit | edeebeed64b1ececdf66d5263f073e8090553961 (patch) | |
tree | cd37d495ab34c4d9c2c2ac62953d056c7a2485d5 /applets | |
parent | 935fb2b0b116ea263fbbed6fffe71a829e6ffdb8 (diff) | |
download | mate-panel-edeebeed64b1ececdf66d5263f073e8090553961.tar.bz2 mate-panel-edeebeed64b1ececdf66d5263f073e8090553961.tar.xz |
clock: Check allocated size before creating the shadow pixbuf
Based on gnome-panel commit: d98b58770dec2f1434cb0acce487e85514ca9bb0
From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'applets')
-rw-r--r-- | applets/clock/clock-map.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |