diff options
author | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2008-03-21 16:07:00 (GMT) |
---|---|---|
committer | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2008-03-21 16:07:00 (GMT) |
commit | afed1fd8dd2a2a6fe44115f6d8a311e0fd044d2f (patch) | |
tree | b67e8ffbfecf45ef08a4d577fa1fdc506947ac2b /src/Links.py | |
parent | 655ee75e3f70322c40629e1b1781bc16af51cf2b (diff) |
* src/TextThought.py:
* src/BaseThought.py:
* src/Links.py:
* src/DrawingThought.py:
Fix potential exception on map opening
* src/DrawingThought.py:
Give all points their own unique colour
* src/MMapArea.py:
Update the colour selectors when loading
a map
git-svn-id: http://labyrinth.googlecode.com/svn/trunk@194 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/Links.py')
-rw-r--r-- | src/Links.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Links.py b/src/Links.py index 2bee2c6..396c849 100644 --- a/src/Links.py +++ b/src/Links.py @@ -63,7 +63,7 @@ class Link (gobject.GObject): def includes (self, coords, mode): # TODO: Change this to make link selection work. Also needs # some fairly large changes in MMapArea - if not self.start or not self.end: + if not self.start or not self.end or not coords: return False mag = (math.sqrt(((self.end[0] - self.start[0]) ** 2) + \ ((self.end[1] - self.start[1]) ** 2))) |