Fixed wxWidgets libpng warnings when creating a DebuggerGUI

This commit is contained in:
Florian Rival
2015-03-18 22:20:24 +13:00
parent ce603f4c06
commit 0b8f2e0b8d
2 changed files with 2 additions and 2 deletions

View File

@@ -351,6 +351,7 @@ void CppLayoutPreviewer::SetParentAuiManager(wxAuiManager * manager)
{
if ( !debugger )
{
wxLogNull noLogPlease; //Avoid libpng warnings.
debugger = std::shared_ptr<DebuggerGUI>(new DebuggerGUI(editor.GetParentControl(), previewScene) );
if ( !parentAuiManager->GetPane("DBG").IsOk() )
parentAuiManager->AddPane( debugger.get(), wxAuiPaneInfo().Name( wxT( "DBG" ) ).Float().CloseButton( true ).Caption( _( "Debugger" ) ).MaximizeButton( true ).MinimizeButton( false ).CaptionVisible(true).MinSize(200, 100).Show(false) );

View File

@@ -105,8 +105,7 @@ mainFrameWrapper(mainFrameWrapper_)
Connect(ID_AUINOTEBOOK1,wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED,(wxObjectEventFunction)&EditorScene::OnnotebookPageChanged);
Connect(ID_AUINOTEBOOK1,wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING,(wxObjectEventFunction)&EditorScene::OnnotebookPageChanging);
//*)
//Prepare pane manager
//Prepare pane manager
m_mgr.SetManagedWindow( this );
layoutEditorCanvas->SetParentAuiManager(&m_mgr);