Le 11 févr. 2010 à 17:47, Frank Niessink a écrit :

> Hi Jérôme,
> 
> It seems wxScheduler (in taskcoach-trunk) has some date-calculation issues:
> 
> Traceback (most recent call last):
> It looks like these lines (389, 399, 407) in wxSchedulerPaint.py may be wrong:
> 
> end = utils.copyDateTime(day)
> end.AddDS(wx.DateSpan(months=1))
> ...
> w, h = self._paintPeriod(drawer, day, end.Subtract(day).GetDays(), x,
> y, width, height)
> 
> I get the traceback with one task with start date Feb 1st and due date
> March 1s when showing all tasks in the Calendar viewer, displaying the
> month March.

Actually it's the use of SetDay that's the problem; this method checks for date 
validity so it's possible to use an invalid day for the month/year that the 
wx.DateTime holds. I was aware of this and wanted to avoid using SetDay anyway 
:)

I've committed a fix.

Cheers
Jérôme

Reply via email to