Fix compile error on non-OSX platforms.

This commit is contained in:
Jeff Young 2018-08-29 22:32:38 +01:00
parent 658e387ad4
commit a97d2f8cf3
1 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ void TREEPROJECT_ITEM::Activate( TREE_PROJECT_FRAME* aTreePrjFrame )
wxTreeItemId id = GetId(); wxTreeItemId id = GetId();
KICAD_MANAGER_FRAME* frame = aTreePrjFrame->m_Parent; KICAD_MANAGER_FRAME* frame = aTreePrjFrame->m_Parent;
wxASSERT( frame ); KIWAY& kiway = frame->Kiway();
switch( GetType() ) switch( GetType() )
{ {
@ -254,7 +254,7 @@ void TREEPROJECT_ITEM::Activate( TREE_PROJECT_FRAME* aTreePrjFrame )
{ {
wxCommandEvent dummy; wxCommandEvent dummy;
frame->OnRunPcbFpEditor( dummy ); frame->OnRunPcbFpEditor( dummy );
frame->Kiway().ExpressMail( FRAME_PCB_MODULE_EDITOR, MAIL_FP_EDIT, fullFileName ); kiway.ExpressMail( FRAME_PCB_MODULE_EDITOR, MAIL_FP_EDIT, fullFileName.ToStdString() );
} }
break; break;
@ -262,7 +262,7 @@ void TREEPROJECT_ITEM::Activate( TREE_PROJECT_FRAME* aTreePrjFrame )
{ {
wxCommandEvent dummy; wxCommandEvent dummy;
frame->OnRunSchLibEditor( dummy ); frame->OnRunSchLibEditor( dummy );
frame->Kiway().ExpressMail( FRAME_SCH_LIB_EDITOR, MAIL_LIB_EDIT, fullFileName ); kiway.ExpressMail( FRAME_SCH_LIB_EDITOR, MAIL_LIB_EDIT, fullFileName.ToStdString() );
} }
break; break;