Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Dolphin starting only once then crashing at startup
  • Loading branch information
delroth committed Mar 1, 2013
1 parent 99cf57e commit a2d08d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/LogWindow.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a2d08d6

Please sign in to comment.