Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-09-02 14:31:37 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-09-02 14:42:07 (GMT)
commit181c0a8dfc5fd434a978498840586e3d2b3637ba (patch)
tree5e2f3f06a679e3cecc07cb5b324a9cb32c57b40a /Area.py
parent583df7a03f81a73ae392a63575ef05b1dbe70c4b (diff)
Save and restore tools state in the metadata - SL #2708
Signed-off-by: Puneet Kaur <puneet.gkaur@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py3
1 files changed, 2 insertions, 1 deletions
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):
"""