Skip to content

Commit

Permalink
- add additional check for font index existence
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Taapat committed Oct 20, 2023
1 parent 45ade8b commit 5b3d90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gui/elistboxcontent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ int eListboxPythonMultiContent::getMaxItemTextWidth()

if (pfnt) {
int fnt_i = PyLong_AsLong(pfnt);
fnt = m_font[fnt_i];
if (m_font.find(fnt_i) != m_font.end()) fnt = m_font[fnt_i];
}

/* don't do anything if we have 'None' as string */
Expand Down

0 comments on commit 5b3d90a

Please sign in to comment.