mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Fix Dolphin starting only once then crashing at startup
This commit is contained in:
parent
99cf57eb39
commit
a2d08d6740
@ -247,7 +247,7 @@ wxTextCtrl* CLogWindow::CreateTextCtrl(wxPanel* parent, wxWindowID id, long Styl
|
||||
#else
|
||||
TC->SetBackgroundColour(*wxBLACK);
|
||||
#endif
|
||||
if (m_FontChoice && m_FontChoice->GetSelection() < (int)LogFont.size())
|
||||
if (m_FontChoice && m_FontChoice->GetSelection() < (int)LogFont.size() && m_FontChoice->GetSelection() >= 0)
|
||||
TC->SetDefaultStyle(wxTextAttr(wxNullColour, wxNullColour, LogFont[m_FontChoice->GetSelection()]));
|
||||
|
||||
return TC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user