modedit: Clear undo when importing
Importing a footprint is creating a new board. Undo breaks here as we
don't maintain undo/redo across boards.
Fixes: lp:1832107
* https://bugs.launchpad.net/kicad/+bug/1832107
(cherry picked from commit 5ce0e7265b
)
This commit is contained in:
parent
35da498a32
commit
b75017830f
|
@ -373,6 +373,11 @@ void FOOTPRINT_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
|
||||||
GetBoard()->GetFirstModule()->ClearFlags();
|
GetBoard()->GetFirstModule()->ClearFlags();
|
||||||
|
|
||||||
GetScreen()->SetModify();
|
GetScreen()->SetModify();
|
||||||
|
// Clear undo and redo lists because we don't have handling to in
|
||||||
|
// FP editor to undo across imports (the module _is_ the board with the stack)
|
||||||
|
// todo: Abstract undo/redo stack to a higher element or keep consistent board item in fpeditor
|
||||||
|
GetScreen()->ClearUndoRedoList();
|
||||||
|
|
||||||
Zoom_Automatique( false );
|
Zoom_Automatique( false );
|
||||||
GetGalCanvas()->Refresh();
|
GetGalCanvas()->Refresh();
|
||||||
Update3DView( true );
|
Update3DView( true );
|
||||||
|
|
Loading…
Reference in New Issue