- Revision
- 11429
- Author
- jeffrey
- Date
- 2006-08-16 16:27:07 -0700 (Wed, 16 Aug 2006)
Log Message
- Allow end times to draw on PowerPC macs
This was a fun problem. Apparently on the PowerPC (but
not Intel Macs, intriguingly), wx's GetFullTextExtent on an empty
string returns something that looks a lot like an unsigned -1.
This was a fun problem. Apparently on the PowerPC (but
not Intel Macs, intriguingly), wx's GetFullTextExtent on an empty
string returns something that looks a lot like an unsigned -1.
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py (11428 => 11429)
--- trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 2006-08-16 22:55:06 UTC (rev 11428) +++ trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 2006-08-16 23:27:07 UTC (rev 11429) @@ -548,8 +548,10 @@ textWidth = dc.GetFullTextExtent(timeString, styles.eventTimeFont)[0] - tzWidth = dc.GetFullTextExtent(tzString, - superscript)[0] + tzWidth = 0 + if len(tzString > 0): + tzWidth = dc.GetFullTextExtent(tzString, + superscript)[0] rightAlignStart = max(x, x + width - textWidth - tzWidth - self.textOffset.x)
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
