Merge pull request #1305 from adamantike/trivial-wxfont-fix

Trivial fix on wxFont style/weight usage
This commit is contained in:
Jonathan Li 2016-04-24 18:43:21 +01:00
commit 9d2cd8490c
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ pxWindowTextWriter& pxWindowTextWriter::SetStyle( wxFontStyle style )
pxWindowTextWriter& pxWindowTextWriter::Normal()
{
wxFont curfont( m_dc.GetFont() );
curfont.SetStyle( wxFONTWEIGHT_NORMAL );
curfont.SetWeight( wxFONTSTYLE_NORMAL );
curfont.SetStyle( wxFONTSTYLE_NORMAL );
curfont.SetWeight( wxFONTWEIGHT_NORMAL );
m_dc.SetFont( curfont );
return *this;