mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Fix Dolphin starting only once then crashing at startup
This commit is contained in:
parent
99cf57eb39
commit
a2d08d6740
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue