Optimize DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS: a time consuming call (OnModify())

was made for each item change.
It is now made only once.
Fixes #10905
https://gitlab.com/kicad/code/kicad/issues/10905
This commit is contained in:
jean-pierre charras
2022-02-20 20:07:33 +01:00
parent df3291c59d
commit 5efd29d6f4
2 changed files with 8 additions and 3 deletions
-2
View File
@@ -76,8 +76,6 @@ void PCB_EDIT_FRAME::SetTrackSegmentWidth( PCB_TRACK* aTrackItem,
if( initial_width != new_width || initial_drill != new_drill )
{
OnModify();
if( aItemsListPicker )
{
aTrackItem->SetWidth( initial_width );