mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +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
|
#else
|
||||||
TC->SetBackgroundColour(*wxBLACK);
|
TC->SetBackgroundColour(*wxBLACK);
|
||||||
#endif
|
#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()]));
|
TC->SetDefaultStyle(wxTextAttr(wxNullColour, wxNullColour, LogFont[m_FontChoice->GetSelection()]));
|
||||||
|
|
||||||
return TC;
|
return TC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user