aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-11-03 03:02:03 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-11-03 03:02:03 +0800
commit1f36b6217d5cc602a6f1e0821531b8d613a69016 (patch)
treebd0896e32e1c4081c5f540d8392ea4fcc26b9ac3 /calendar
parent97a56fd84af16acbcd6722dd2b7a3c9caf941cfa (diff)
downloadgsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.gz
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.zst
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.zip
Fixes #68707
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') svn path=/trunk/; revision=27799
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/e-week-view-event-item.c4
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