Reinstate fp-editor-specific commit handling in fillet/chamfer tools

This check was omitted in the refactor of the fillet tool, and
resulted in a bug when undoing the action: the modified lines would
not be un-modified.
This commit is contained in:
John Beard 2023-07-23 14:48:26 +01:00
parent a343cd0a24
commit 0b32ae3f4b
1 changed files with 4 additions and 0 deletions

View File

@ -1197,6 +1197,10 @@ int EDIT_TOOL::ModifyLines( const TOOL_EVENT& aEvent )
BOARD_COMMIT commit{ this };
// Only modify one parent in FP editor
if( m_isFootprintEditor )
commit.Modify( selection.Front() );
// List of thing to select at the end of the operation
// (doing it as we go will invalidate the iterator)
std::vector<PCB_SHAPE*> items_to_select_on_success;