Added calls to TestDanglingEnds() at undo and redo, so dangling ends are correctly updated (e.g. when a compnent deletion is undone).

This commit is contained in:
diemer 2008-04-01 19:45:30 +00:00
parent a196a324d8
commit c819ab3bde
1 changed files with 6 additions and 2 deletions

View File

@ -712,13 +712,17 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
break;
case ID_SCHEMATIC_UNDO:
if( GetSchematicFromUndoList() )
if( GetSchematicFromUndoList() ){
TestDanglingEnds( GetScreen()->EEDrawList, &dc );
DrawPanel->Refresh( TRUE );
}
break;
case ID_SCHEMATIC_REDO:
if( GetSchematicFromRedoList() )
if( GetSchematicFromRedoList() ){
TestDanglingEnds( GetScreen()->EEDrawList, &dc );
DrawPanel->Refresh( TRUE );
}
break;
default: // Log error: