All pastes #457822 Raw Edit

patch for MSB

public text v1 · immutable
#457822 ·published 2007-04-25 16:03 UTC
rendered paste body
Index: /Users/rae/work/osaf/chandler/chandler/util/MultiStateButton.py
===================================================================
--- /Users/rae/work/osaf/chandler/chandler/util/MultiStateButton.py	(revision 14049)
+++ /Users/rae/work/osaf/chandler/chandler/util/MultiStateButton.py	(working copy)
@@ -293,7 +293,8 @@
             stateBitmaps = self.bitmapCache[self.currentState]
             # only do all this if there was actually a rollover
             if getattr(stateBitmaps, "rollover", None) is not None:
-                assert getattr(stateBitmaps, "normal", None) is not None, "invalid state '" + inStateName + "' is missing 'normal' bitmap"
+                assert getattr(stateBitmaps, "normal", None) is not None, \
+                    "invalid state '" + self.currentState + "' is missing 'normal' bitmap"
                 self.SetBitmapLabel(stateBitmaps.normal)
                 self.Refresh()
                 # will the app need this call to Update?