Commit a56c02e9 authored by charras's avatar charras

change for macOSX compatibility

parent b24bbab0
...@@ -428,12 +428,14 @@ void WinEDA_SchematicFrame::OnUpdatePaste( wxUpdateUIEvent& event ) ...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment