dabo Commit
Revision 6342
Date: 2011-01-24 10:38:44 -0800 (Mon, 24 Jan 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6342
Changed:
U trunk/dabo/ui/uiwx/dPemMixin.py
Log:
Fix for ticket #1402.
Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2011-01-24 11:34:18 UTC (rev 6341)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2011-01-24 18:38:44 UTC (rev 6342)
@@ -3065,7 +3065,7 @@
dc.DrawText(txt, x, y)
else:
dc.DrawRotatedText(txt, x, y, self._angle)
- w, h = dabo.ui.fontMetricFromDrawObject(self)
+ w, h = dabo.ui.fontMetricFromDC(dc, txt)
angle = self._angle % 360
if angle % 90 == 0:
if angle % 180 == 0:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]