From 938f6991e04c0028b0e4c2ed6168ef8bb2f5ed86 Mon Sep 17 00:00:00 2001 From: "jminta%gmail.com" Date: Tue, 28 Mar 2006 02:57:36 +0000 Subject: [PATCH] Bug 327856 Views don't display events that start and end at 00:00 on the same day, r=dmose --- calendar/base/content/calendar-month-view.xml | 5 +++++ calendar/base/content/calendar-multiday-view.xml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/calendar/base/content/calendar-month-view.xml b/calendar/base/content/calendar-month-view.xml index a67d0bf8244..eb56a6a7247 100644 --- a/calendar/base/content/calendar-month-view.xml +++ b/calendar/base/content/calendar-month-view.xml @@ -1130,6 +1130,11 @@ targetDate.second = 0; } + if (targetDate.compare(finishDate) == 0) { + // Zero length events are silly, but we have to handle them + return [this.findBoxForDate(targetDate)]; + } + while (targetDate.compare(finishDate) == -1) { var box = this.findBoxForDate(targetDate); diff --git a/calendar/base/content/calendar-multiday-view.xml b/calendar/base/content/calendar-multiday-view.xml index 945fb7200c8..71f33d04052 100644 --- a/calendar/base/content/calendar-multiday-view.xml +++ b/calendar/base/content/calendar-multiday-view.xml @@ -2407,6 +2407,11 @@ targetDate.second = 0; } + if (targetDate.compare(finishDate) == 0) { + // Zero length events are silly, but we have to handle them + return [this.findColumnForDate(targetDate)]; + } + while (targetDate.compare(finishDate) == -1) { var col = this.findColumnForDate(targetDate);