diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/e-week-view-event-item.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 79099b528e..ee6044958c 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-11-02 JP Rosevear <jpr@novell.com> + + Fixes #68707 + + * gui/e-week-view-event-item.c (e_week_view_event_item_draw): + restrict the range to 0-23 (midnight end times became '24') + 2004-10-28 Not Zed <NotZed@Ximian.com> * gui/tasks-component.c (popup_event_cb): diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index 300945aa03..d088a416d5 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -270,7 +270,9 @@ e_week_view_event_item_draw (GnomeCanvasItem *canvas_item, /* Get the start & end times in 24-hour format. */ start_hour = event->start_minute / 60; start_minute = event->start_minute % 60; - end_hour = event->end_minute / 60; + + /* Modulo 24 because a midnight end time will be '24' */ + end_hour = (event->end_minute / 60) % 24; end_minute = event->end_minute % 60; time_y = y1 + E_WEEK_VIEW_EVENT_BORDER_HEIGHT |