aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 7726f6b445..f304bc9d45 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -641,7 +641,8 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
if (icon_x + E_WEEK_VIEW_ICON_WIDTH <= x2) {
gdk_gc_set_clip_origin (gc, icon_x, icon_y);
- gdk_gc_set_clip_mask (gc, mask);
+ if (mask != NULL)
+ gdk_gc_set_clip_mask (gc, mask);
gdk_draw_pixmap (drawable, gc,
pixmap,
0, 0, icon_x, icon_y,