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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index c18ab8db57..13de066ce5 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -1192,6 +1192,9 @@ e_week_view_event_item_set_event_num (EWeekViewEventItem *event_item,
{
g_return_if_fail (E_IS_WEEK_VIEW_EVENT_ITEM (event_item));
+ if (event_item->priv->event_num == event_num)
+ return;
+
event_item->priv->event_num = event_num;
gnome_canvas_item_request_update (GNOME_CANVAS_ITEM (event_item));
@@ -1212,6 +1215,9 @@ e_week_view_event_item_set_span_num (EWeekViewEventItem *event_item,
{
g_return_if_fail (E_IS_WEEK_VIEW_EVENT_ITEM (event_item));
+ if (event_item->priv->span_num == span_num)
+ return;
+
event_item->priv->span_num = span_num;
gnome_canvas_item_request_update (GNOME_CANVAS_ITEM (event_item));