#3542 closed defect (fixed)

cannot set default font in preferences

Reported by: cmbarton Owned by: grass-dev@…
Priority: major Milestone: 7.4.1
Component: wxGUI Version: 7.2.2
Keywords: wxgui, font Cc:
CPU: Unspecified Platform: MacOSX

Description

I cannot set any font in preferences. It raises a GUI python error. The result is that I get no text in some parts of the output (e.g. d.grid). Here is the error:

Traceback (most recent call last):

File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui

/wxpython/gui_core/preferences.py", line 1994, in OnSetOutputFontCustomDialog?

type='outputfont')

File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui

/wxpython/gui_core/dialogs.py", line 2474, in init

pos=(2, 0))

File "/Applications/GRASS-7.2.2.app/Contents/Resources/lib

/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 15935, in Add

return _core_.GridBagSizer_Add(*args, kwargs) wx._core . PyAssertionError? : C++ assertion "CheckForIntersection(item)" failed at /Users/chris.barker/miniconda/conda-bld/work/wxPython- src-3.0.2.0/src/common/gbsizer.cpp(223) in Add(): An item is already at that position

Change History (4)

comment:1 Changed 19 months ago by annakrat

Resolution: fixed
Status: newclosed

Fixed in r72586, backported in r72587, r72588.

comment:2 Changed 14 months ago by cmbarton

Resolution: fixed
Status: closedreopened

This is still broken in GRASS 7.2.2 for the map display (works for command output font). Here is the error

Traceback (most recent call last):

File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui

/wxpython/gui_core/preferences.py", line 1961, in OnSetFont?

type='font')

File "/Applications/GRASS-7.2.2.app/Contents/Resources/gui

/wxpython/gui_core/dialogs.py", line 2489, in init

self.fontlb.SetStringSelection?(fontdict_reverse[self.font], True) KeyError? : 'Helvetica'

comment:3 Changed 13 months ago by cmbarton

This is fixed in 7.4 release branch on up. I don't know if anyone has backported the fix to 7.2

comment:4 Changed 13 months ago by cmbarton

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.