From af77859c21817643bec3690ce15d1ac24ddb13a4 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 8 Oct 2007 13:54:27 +0200 Subject: [PATCH] Don't fail to expose if there is no invoker. --- sugar/graphics/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index aaf6f6a8..70cf4534 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()