Don't fail to expose if there is no invoker.
This commit is contained in:
parent
e5c61cfb4a
commit
af77859c21
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user