labyrinth-team / labyrinth

Labyrinth is a lightweight mind-mapping tool (and looking for maintainers)
GNU General Public License v2.0
99 stars 33 forks source link

Can't edit a new text thought after making an image thought #3

Closed takluyver closed 12 years ago

takluyver commented 12 years ago
  1. New map
  2. Image mode
  3. Click on the map to add thought, select image
  4. Switch back to text mode
  5. Click on the map to add thought.

Thought appears, but can't edit text. In a terminal, I see tracebacks like this:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/labyrinth_lib/MMapArea.py", line 761, in expose
    self.draw (event, context)
  File "/usr/lib/python2.7/dist-packages/labyrinth_lib/MMapArea.py", line 798, in draw
    t.draw(context)
  File "/usr/lib/python2.7/dist-packages/labyrinth_lib/TextThought.py", line 333, in draw
    r, g ,b = utils.gtk_to_cairo_color(utils.default_colors["text"])
  File "/usr/lib/python2.7/dist-packages/labyrinth_lib/utils.py", line 151, in gtk_to_cairo_color
    return (color.red / 65535.0, color.green / 65535.0, color.blue / 65535.0)
AttributeError: 'tuple' object has no attribute 'red'