- Revision
- 11445
- Author
- jeffrey
- Date
- 2006-08-17 17:31:50 -0700 (Thu, 17 Aug 2006)
Log Message
- Fix for bug 6506, events that end on the hour only line up
with the hour if they start on the hour or half past (a one
pixel rounding error). Fixed by using a little less floating
point arithmethic when calculating the end position.
with the hour if they start on the hour or half past (a one
pixel rounding error). Fixed by using a little less floating
point arithmethic when calculating the end position.
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py (11444 => 11445)
--- trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py 2006-08-17 23:48:19 UTC (rev 11444) +++ trunk/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py 2006-08-18 00:31:50 UTC (rev 11445) @@ -968,12 +968,8 @@ """ startX, startY, width = self.getPositionFromDateTime(startTime) - duration = (endTime - startTime) - duration = duration.days * 24 + duration.seconds / float(3600) - if duration <= 0.5: - duration = 0.5 - - height = int(duration * self.hourHeight) + height = int(self.hourHeight * (endTime.hour + endTime.minute/60.0) - + startY) return wx.Rect(startX, startY, width+1, height+1)
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
