Improved performance

This commit is contained in:
Zane U. Ji 2014-02-08 19:15:15 +08:00
parent ae2457da03
commit e750774b05
1 changed files with 6 additions and 7 deletions

View File

@ -5512,7 +5512,7 @@ void MyFrame::messagePane ( const wxString& s, int iconType, bool forcePane )
paneTitle = _ ( "Warning" ); paneTitle = _ ( "Warning" );
break; break;
case ( CONST_STOP ) : case ( CONST_STOP ) :
paneTitle = _ ( "Stopped" ); paneTitle = _ ( "Stopped" );
break; break;
case ( CONST_QUESTION ) : case ( CONST_QUESTION ) :
paneTitle = _ ( "Question" ); paneTitle = _ ( "Question" );
@ -5522,14 +5522,13 @@ void MyFrame::messagePane ( const wxString& s, int iconType, bool forcePane )
break; break;
} }
wxAuiPaneInfo info = manager.GetPane ( htmlReport ); wxAuiPaneInfo &info = manager.GetPane ( htmlReport );
if ( !info.IsShown() ) if ( !info.IsShown() )
{ {
manager.GetPane ( htmlReport ).Show ( true ); info.Show ( true );
manager.Update();
} }
manager.GetPane ( htmlReport ).Caption ( paneTitle ); info.Caption ( paneTitle );
wxString htmlString = s; wxString htmlString = s;
htmlString.Replace ( _T ( "&" ), _T ( "&" ), true ); htmlString.Replace ( _T ( "&" ), _T ( "&" ), true );
@ -5549,7 +5548,7 @@ void MyFrame::messagePane ( const wxString& s, int iconType, bool forcePane )
switch ( iconType ) switch ( iconType )
{ {
case ( CONST_INFO ) : case ( CONST_INFO ) :
htmlBuffer += pngDir; htmlBuffer += pngDir;
htmlBuffer += _T ( "stock_dialog-info-32.png" ); htmlBuffer += _T ( "stock_dialog-info-32.png" );
break; break;
case ( CONST_WARNING ) : case ( CONST_WARNING ) :