From 358439adc70436139c2b6bc36c3477bd55b69fe0 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 28 Jul 2008 21:22:43 +0000 Subject: [PATCH] Monotone-Parent: 56d4fc5e8a975c626a7d96d0b6909e1e238818ea Monotone-Revision: ddbe9ba6f366f068053deeff94d16d49001eb7e1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-28T21:22:43 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Scheduler/UIxCalMonthView.m | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b14a564a1..beab4b641 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-07-28 Wolfgang Sourdeau + * UI/Scheduler/UIxCalMonthView.m ([UIxCalMonthView + -weeksToDisplay]): add one day to the computed delta, because + there is always at least one week displayed. + * SoObjects/SOGo/SOGoUserFolder.m ([SOGoUserFolder -foldersOfType:typematchingUID:uid]): make searches only in user repositories and not in addressbooks. diff --git a/UI/Scheduler/UIxCalMonthView.m b/UI/Scheduler/UIxCalMonthView.m index 1872340a1..508ee11c4 100644 --- a/UI/Scheduler/UIxCalMonthView.m +++ b/UI/Scheduler/UIxCalMonthView.m @@ -102,7 +102,7 @@ [selectedDate firstDayOfMonth]]; lastDayOfMonth = [selectedDate lastDayOfMonth]; firstToLast = ([lastDayOfMonth timeIntervalSinceDate: firstOfAllDays] - / 86400); + / 86400) + 1; weeks = firstToLast / 7; if ((firstToLast % 7)) weeks++;