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:
parent
a196a324d8
commit
c819ab3bde
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue