diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-08 11:54:27 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-08 11:54:27 (GMT) |
commit | af77859c21817643bec3690ce15d1ac24ddb13a4 (patch) | |
tree | 994448c27f0b62a50681909ad993130c879b4430 /sugar/graphics | |
parent | e5c61cfb4ad26e4e491a44672eb25fd010104b84 (diff) |
Don't fail to expose if there is no invoker.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/palette.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index aaf6f6a..70cf453 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -257,7 +257,7 @@ class Palette(gtk.Window): def do_expose_event(self, event): # We want to draw a border with a beautiful gap - if self._invoker.has_rectangle_gap(): + if self._invoker is not None and self._invoker.has_rectangle_gap(): invoker = self._invoker.get_rect() palette = self.get_rect() |