dabo Commit
Revision 4454
Date: 2008-08-26 13:14:42 -0700 (Tue, 26 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4454
Changed:
U trunk/dabo/ui/dPemMixinBase.py
Log:
The logic of saving the original font size was completely wack, resulting in
zooming of font sizes not working at all as intended, going back at least to
October 2007.
I believe this fixes up the issues, but I'll now test on Mac and Win.
Diff:
Modified: trunk/dabo/ui/dPemMixinBase.py
===================================================================
--- trunk/dabo/ui/dPemMixinBase.py 2008-08-26 17:53:36 UTC (rev 4453)
+++ trunk/dabo/ui/dPemMixinBase.py 2008-08-26 20:14:42 UTC (rev 4454)
@@ -113,19 +113,16 @@
self._setAbsoluteFontZoom(0)
def _setRelativeFontZoom(self, amt):
- abs_zoom = getattr(self, "_currFontZoom", 0)
- if abs_zoom is None:
- abs_zoom = amt
- else:
- abs_zoom += amt
+ abs_zoom = getattr(self, "_currFontZoom", 0) + amt
self._setAbsoluteFontZoom(abs_zoom)
def _setAbsoluteFontZoom(self, newZoom):
if not hasattr(self, "FontSize"):
# Menus, for instance
return
- origFontSize = self._origFontSize = getattr(self,
"_origFontSize", 0)
+ origFontSize = getattr(self, "_origFontSize", None)
if origFontSize is None:
+ self._origFontSize = self.FontSize
fontSize = self.FontSize + newZoom
else:
fontSize = origFontSize + newZoom
_______________________________________________
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]