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;
|
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:
|
||||||
|
|
Loading…
Reference in New Issue