From 181c0a8dfc5fd434a978498840586e3d2b3637ba Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Mon, 02 Sep 2013 14:31:37 +0000 Subject: Save and restore tools state in the metadata - SL #2708 Signed-off-by: Puneet Kaur Acked-by: Gonzalo Odiard --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index d0f4f72..80de9a2 100644 --- a/Area.py +++ b/Area.py @@ -1670,7 +1670,8 @@ class Area(Gtk.DrawingArea): hotspot_x, hotspot_y) except GObject.GError: cursor = None - self.get_window().set_cursor(cursor) + if self.get_window() is not None: + self.get_window().set_cursor(cursor) def getout(self, undo=False, clear_selection=True): """ -- cgit v0.9.1