aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
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/gui
parent97a56fd84af16acbcd6722dd2b7a3c9caf941cfa (diff)
downloadgsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.gz
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.bz2
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.lz
gsoc2013-evolution-1f36b6217d5cc602a6f1e0821531b8d613a69016.tar.xz
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/gui')
-rw-r--r--calendar/gui/e-week-view-event-item.c4
1 files changed, 3 insertions, 1 deletions
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