moved m_bm.Init as it is not required before initPgm

This commit is contained in:
Simon Wells 2015-09-12 10:37:33 +12:00
parent 4541eb4f37
commit 906991c4ac
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,6 @@ bool PGM_KICAD::OnPgmInit( wxApp* aWxApp )
{
m_wx_app = aWxApp; // first thing.
m_bm.Init();
wxString absoluteArgv0 = wxStandardPaths::Get().GetExecutablePath();
if( !wxIsAbsolutePath( absoluteArgv0 ) )
@ -117,6 +115,8 @@ bool PGM_KICAD::OnPgmInit( wxApp* aWxApp )
if( !initPgm() )
return false;
m_bm.Init();
// Add search paths to feed the PGM_KICAD::SysSearch() function,
// currenly limited in support to only look for project templates
{