google-code-export / labyrinth

Automatically exported from code.google.com/p/labyrinth
GNU General Public License v2.0
2 stars 0 forks source link

Clicking and dragging corrupts the map file. #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new map
2. Create a new thought
3. Click and drag in the map window, a line will be drawn.
4. Close the map
5. The map will not load, giving the error output below.

What version of the product are you using? On what operating system?
v0.3 under Ubuntu 6.06 LTS

Please provide any additional information below.
Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/labyrinth/Browser.py", line
199, in open_row_cb
    self.open_selected_map ()
  File "/usr/local/lib/python2.4/site-packages/labyrinth/Browser.py", line
162, in open_selected_map
    self.open_map (map)
  File "/usr/local/lib/python2.4/site-packages/labyrinth/Browser.py", line
146, in open_map
    win = MainWindow.LabyrinthWindow (map.filename)
  File "/usr/local/lib/python2.4/site-packages/labyrinth/MainWindow.py",
line 123, in __init__
    self.parse_file (filename)
  File "/usr/local/lib/python2.4/site-packages/labyrinth/MainWindow.py",
line 385, in parse_file
    self.MainArea.load_thyself (top_element, doc)
  File "/usr/local/lib/python2.4/site-packages/labyrinth/MMapArea.py", line
723, in load_thyself
    self.finish_loading ()
  File "/usr/local/lib/python2.4/site-packages/labyrinth/MMapArea.py", line
762, in finish_loading
    l.set_parent_child (parent, child)
  File "/usr/local/lib/python2.4/site-packages/labyrinth/Links.py", line
118, in set_parent_child
    self.find_ends ()
  File "/usr/local/lib/python2.4/site-packages/labyrinth/Links.py", line
85, in find_ends
    (self.start, self.end) = self.parent.find_connection (self.child)
AttributeError: 'NoneType' object has no attribute 'find_connection'

Original issue reported on code.google.com by helloken...@gmail.com on 16 Nov 2006 at 8:28

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.  This issue has already been reported as issue #34.  
I've
committed a fix to the current trunk and it will be fixed in 0.3.1 (if this is
released) or 0.4 (if not).

Original comment by DonScor...@gmail.com on 18 Nov 2006 at 12:53