dabo Commit
Revision 3937
Date: 2008-02-25 05:31:16 -0800 (Mon, 25 Feb 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3937

Changed:
U   trunk/dabo/ui/dPemMixinBase.py

Log:
Fixed a problem with the getattr() calls introduced in rev. #3936


Diff:
Modified: trunk/dabo/ui/dPemMixinBase.py
===================================================================
--- trunk/dabo/ui/dPemMixinBase.py      2008-02-25 01:14:01 UTC (rev 3936)
+++ trunk/dabo/ui/dPemMixinBase.py      2008-02-25 13:31:16 UTC (rev 3937)
@@ -113,7 +113,7 @@
                self._setAbsoluteFontZoom(0)
 
        def _setRelativeFontZoom(self, amt):
-               abs_zoom = getattr(self, "_currFontZoom")
+               abs_zoom = getattr(self, "_currFontZoom", 0)
                if abs_zoom is None:
                        abs_zoom = amt
                else:
@@ -124,7 +124,7 @@
                if not hasattr(self, "FontSize"):
                        # Menus, for instance
                        return
-               origFontSize = self._origFontSize = getattr(self, 
"_origFontSize")
+               origFontSize = self._origFontSize = getattr(self, 
"_origFontSize", 0)
                if origFontSize is None:
                        fontSize = self.FontSize + newZoom
                else:




_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to