From a56c02e94bf43a0fb5125067c051f4788994fdba Mon Sep 17 00:00:00 2001 From: charras Date: Mon, 8 Jun 2009 18:10:40 +0000 Subject: [PATCH] change for macOSX compatibility --- eeschema/schframe.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eeschema/schframe.cpp b/eeschema/schframe.cpp index 7a8d67fc4a..8991ce2215 100644 --- a/eeschema/schframe.cpp +++ b/eeschema/schframe.cpp @@ -428,12 +428,14 @@ void WinEDA_SchematicFrame::OnUpdatePaste( 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 ) { - event.Enable( (GetScreen()->m_RedoList) ? true : false ); + if ( GetScreen() ) + event.Enable( (GetScreen()->m_RedoList) ? true : false ); } void WinEDA_SchematicFrame::OnUpdateBusOrientation( wxUpdateUIEvent& event )