diff --git a/eeschema/schedit.cpp b/eeschema/schedit.cpp index f5c25c2d02..07d317f384 100644 --- a/eeschema/schedit.cpp +++ b/eeschema/schedit.cpp @@ -712,15 +712,17 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event ) break; case ID_SCHEMATIC_UNDO: - if( GetSchematicFromUndoList() ){ - TestDanglingEnds( GetScreen()->EEDrawList, &dc ); + if( GetSchematicFromUndoList() ) + { + TestDanglingEnds( GetScreen()->EEDrawList, NULL ); DrawPanel->Refresh( TRUE ); } break; case ID_SCHEMATIC_REDO: - if( GetSchematicFromRedoList() ){ - TestDanglingEnds( GetScreen()->EEDrawList, &dc ); + if( GetSchematicFromRedoList() ) + { + TestDanglingEnds( GetScreen()->EEDrawList, NULL ); DrawPanel->Refresh( TRUE ); } break;