Re: [evolution-patches] 68707 Events ending at 12:00 AM show as ending at 12:00 pm



On Tue, 2004-11-02 at 14:07 -0500, JP Rosevear wrote:
> Already committed to HEAD.

Ahem, the actual patch.

-JP
-- 
JP Rosevear <jpr novell com>
Novell, Inc.
? 68707.patch
? bar.patch
? context.patch
? gui/menu.patch
? gui/non-cursor.patch
? gui/temp.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2556
diff -u -r1.2556 ChangeLog
--- ChangeLog	28 Oct 2004 09:26:12 -0000	1.2556
+++ ChangeLog	2 Nov 2004 19:00:21 -0000
@@ -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): 
Index: gui/e-week-view-event-item.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-week-view-event-item.c,v
retrieving revision 1.49
diff -u -r1.49 e-week-view-event-item.c
--- gui/e-week-view-event-item.c	14 Oct 2004 14:56:18 -0000	1.49
+++ gui/e-week-view-event-item.c	2 Nov 2004 19:00:21 -0000
@@ -270,7 +270,9 @@
 	/* 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]