Commit c819ab3b authored by diemer's avatar diemer

Added calls to TestDanglingEnds() at undo and redo, so dangling ends are...

Added calls to TestDanglingEnds() at undo and redo, so dangling ends are correctly updated (e.g. when a compnent deletion is undone).
parent a196a324
...@@ -712,13 +712,17 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event ) ...@@ -712,13 +712,17 @@ void WinEDA_SchematicFrame::Process_Special_Functions( wxCommandEvent& event )
break; break;
case ID_SCHEMATIC_UNDO: case ID_SCHEMATIC_UNDO:
if( GetSchematicFromUndoList() ) if( GetSchematicFromUndoList() ){
TestDanglingEnds( GetScreen()->EEDrawList, &dc );
DrawPanel->Refresh( TRUE ); DrawPanel->Refresh( TRUE );
}
break; break;
case ID_SCHEMATIC_REDO: case ID_SCHEMATIC_REDO:
if( GetSchematicFromRedoList() ) if( GetSchematicFromRedoList() ){
TestDanglingEnds( GetScreen()->EEDrawList, &dc );
DrawPanel->Refresh( TRUE ); DrawPanel->Refresh( TRUE );
}
break; break;
default: // Log error: default: // Log error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment