Error with text tool getting font information

Bug #786602 reported by Steven Sproat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Whyteboard
Fix Committed
High
Steven Sproat

Bug Description

Whyteboard 0.41.1
Operating System: Linux 2.6.31-14-generic i686
Screen Resolution: 1366x768
Python Version: 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1]
wxPython Version: 2.8.10.1 (gtk2-unicode)
wxPython Info: (__WXGTK__, wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29)
Python Encoding: Default=ascii File=UTF-8
wxPython Encoding: utf-8
System Architecture: 32bit i686

File \"/usr/lib/whyteboard/whyteboard/gui/canvas.py\", line 188, in left_up
   self.shape.left_up(*self.convert_coords(event))
 File \"/usr/lib/whyteboard/whyteboard/tools.py\", line 1211, in left_up
   self.font_data = self.font.GetNativeFontInfoDesc()
AttributeError: \'NoneType\' object has no attribute \'GetNativeFontInfoDesc\'

The function call is
self.font_data = self.font.GetNativeFontInfoDesc()

Gotta check under what conditions the font of the text object could be set to nothing.

Tags: crash tools

Related branches

Steven Sproat (sproaty)
tags: added: crash
Steven Sproat (sproaty)
Changed in whyteboard:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.