Fix a copy-paste error in WX_HTML_REPORT_PANEL badges creator

This commit is contained in:
Maciej Suminski 2018-02-22 17:05:06 +01:00
parent fea71c9f8f
commit 8a8b062d8e
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ void WX_HTML_REPORT_PANEL::scrollToBottom()
const static wxSize BADGE_SIZE_DU( 9, 9 ); const static wxSize BADGE_SIZE_DU( 9, 9 );
const static int BADGE_FONT_SIZE = 9; const static int BADGE_FONT_SIZE = 9;
static wxBitmap makeBadge( REPORTER::SEVERITY aStyle, int aCount, wxWindow *aWindow ) static wxBitmap makeBadge( REPORTER::SEVERITY aStyle, int aCount, wxWindow* aWindow )
{ {
wxSize size( aWindow->ConvertDialogToPixels( BADGE_SIZE_DU ) ); wxSize size( aWindow->ConvertDialogToPixels( BADGE_SIZE_DU ) );
wxBitmap bitmap( size ); wxBitmap bitmap( size );
@ -181,8 +181,8 @@ void WX_HTML_REPORT_PANEL::updateBadges()
if( count > 0 ) if( count > 0 )
{ {
m_warningsBadge->SetBitmap( makeBadge( REPORTER::RPT_WARNING, count, m_errorsBadge ) ); m_warningsBadge->SetBitmap( makeBadge( REPORTER::RPT_WARNING, count, m_warningsBadge ) );
m_errorsBadge->Show( true ); m_warningsBadge->Show( true );
} }
else else
m_warningsBadge->Show( false ); m_warningsBadge->Show( false );