evolution r37188 - in trunk/calendar: . gui



Author: pchen
Date: Fri Jan 30 09:29:12 2009
New Revision: 37188
URL: http://svn.gnome.org/viewvc/evolution?rev=37188&view=rev

Log:
Fixes #450535 (bnc).

Modified:
   trunk/calendar/ChangeLog
   trunk/calendar/gui/e-calendar-view.c

Modified: trunk/calendar/gui/e-calendar-view.c
==============================================================================
--- trunk/calendar/gui/e-calendar-view.c	(original)
+++ trunk/calendar/gui/e-calendar-view.c	Fri Jan 30 09:29:12 2009
@@ -2019,7 +2019,7 @@
 
 	/* We either need rounding or don't want to set all_day for this, we will rather use actual */
 	/* time in this cases; dtstart should be a midnight in this case */
-	if (do_rounding || (!all_day && (dtend - dtstart) % (60 * 60 * 24) == 0)) {
+	if (do_rounding || (!all_day && (dtend - dtstart) == (60 * 60 * 24))) {
 		struct tm local = *localtime (&now);
 		int time_div = calendar_config_get_time_divisions ();
 		int hours, mins;



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