GNOME Bugzilla – Bug 435307
OOo Calc output traceback for UnboundLocalError: local variable 'focusRegion' referenced before assignment
Last modified: 2007-05-03 20:44:08 UTC
I got this whilst debugging bug #433398. Steps to reproduce: 1/ Start Orca 2/ Start OOo Calc 3/ Select a cell in the spread sheet other than A1 4/ Select Alt-w to display the Window menu. 5/ Select Alt-f to select the Freeze menu item. 6/ Select Alt-w to try to reselect the Window menu. At this point, there is a lot of disk activity and everything seem to grind to a halt. After a while Orca and OOo are responsive again but the following traceback is generated: Traceback (most recent call last):
+ Trace 131972
s.processObjectEvent(event)
self.listeners[key](event)
orca.setLocusOfFocus(event, child)
orca_state.locusOfFocus)
newLocusOfFocus)
oldLocusOfFocus, newLocusOfFocus)
self.updateBraille(newLocusOfFocus)
result = self.brailleGenerator.getBrailleRegions(obj)
result = generator(obj)
regions = [regions, focusRegion]
Created attachment 87488 [details] [review] Patch to fix the problem. Just needed to initialize focusRegion to None need the beginning of the _getBrailleRegionsForTableCellRow() method in the StarOffice script. Patch checked into SVN HEAD. Closing as FIXED.