google-code-export / labyrinth

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

AttributeError: 'NoneType' object has no attribute 'red' #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AttributeError: 'NoneType' object has no attribute 'red'
Traceback (most recent call last):
  File "/home/ms/workspace/labyrinth/src/MMapArea.py", line 702, in expose
    self.draw (event, context)
  File "/home/ms/workspace/labyrinth/src/MMapArea.py", line 747, in draw
    t.draw(context)
  File "/home/ms/workspace/labyrinth/src/TextThought.py", line 330, in draw
    r,g,b = utils.gtk_to_cairo_color(self.foreground_color)
  File "/home/ms/workspace/labyrinth/src/utils.py", line 137, in
gtk_to_cairo_color
    return (color.red / 65535.0, color.green / 65535.0, color.blue / 65535.0)
AttributeError: 'NoneType' object has no attribute 'red'

Original issue reported on code.google.com by sinfr...@gmail.com on 4 Apr 2008 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by sinfr...@gmail.com on 14 Jul 2008 at 7:04

GoogleCodeExporter commented 9 years ago
Fixed in revision 337.

Original comment by sinfr...@gmail.com on 15 Jul 2008 at 8:23