change for macOSX compatibility

This commit is contained in:
charras 2009-06-08 18:10:40 +00:00
parent b24bbab0af
commit a56c02e94b
1 changed files with 4 additions and 2 deletions

View File

@ -428,12 +428,14 @@ void WinEDA_SchematicFrame::OnUpdatePaste( wxUpdateUIEvent& event )
void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event ) void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event )
{ {
event.Enable( (GetScreen()->m_UndoList) ? true : false ); if ( GetScreen() )
event.Enable( (GetScreen()->m_UndoList) ? true : false );
} }
void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event ) void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event )
{ {
event.Enable( (GetScreen()->m_RedoList) ? true : false ); if ( GetScreen() )
event.Enable( (GetScreen()->m_RedoList) ? true : false );
} }
void WinEDA_SchematicFrame::OnUpdateBusOrientation( wxUpdateUIEvent& event ) void WinEDA_SchematicFrame::OnUpdateBusOrientation( wxUpdateUIEvent& event )