kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02675
MacOSX - wx2.9 eeschema crash on exit
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Marco Serantoni" <marco.serantoni@...>
-
Date:
Mon, 08 Jun 2009 18:41:41 -0000
-
User-agent:
eGroups-EW/0.82
Happens due event processing after the class destruction.
Index: schframe.cpp
===================================================================
--- schframe.cpp (revision 1809)
+++ schframe.cpp (working copy)
@@ -428,11 +460,15 @@
void WinEDA_SchematicFrame::OnUpdateSchematicUndo( wxUpdateUIEvent& event )
{
+ if (GetScreen() == NULL)
+ return;
event.Enable( (GetScreen()->m_UndoList) ? true : false );
}
void WinEDA_SchematicFrame::OnUpdateSchematicRedo( wxUpdateUIEvent& event )
{
+ if (GetScreen() == NULL)
+ return;
event.Enable( (GetScreen()->m_RedoList) ? true : false );
}