Browse Source

Move where flag is cleared to catch more cases

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9892
6.0.7
Jon Evans 4 years ago
parent
commit
587ee890d9
  1. 3
      pcbnew/netlist_reader/netlist.cpp
  2. 4
      pcbnew/tools/edit_tool.cpp

3
pcbnew/netlist_reader/netlist.cpp

@ -114,10 +114,7 @@ void PCB_EDIT_FRAME::OnNetlistChanged( BOARD_NETLIST_UPDATER& aUpdater, bool* aR
if( !newFootprints.empty() )
{
for( FOOTPRINT* footprint : newFootprints )
{
footprint->SetAttributes( footprint->GetAttributes() & ~FP_JUST_ADDED );
GetToolManager()->RunAction( PCB_ACTIONS::selectItem, true, footprint );
}
*aRunDragCommand = true;

4
pcbnew/tools/edit_tool.cpp

@ -764,6 +764,10 @@ int EDIT_TOOL::doMoveSelection( TOOL_EVENT aEvent, bool aPickReference )
{
for( PAD* pad : footprint->Pads() )
sel_items.push_back( pad );
// Clear this flag here; it will be set by the netlist updater if the footprint is new
// so that it was skipped in the initial connectivity update in OnNetlistChanged
footprint->SetAttributes( footprint->GetAttributes() & ~FP_JUST_ADDED );
}
}

Loading…
Cancel
Save