Make sure connectivity is updated in undo/redo

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16945
This commit is contained in:
Jon Evans 2024-02-11 20:01:05 -05:00
parent 51312ed407
commit 622c2f1316
1 changed files with 4 additions and 0 deletions

View File

@ -485,7 +485,11 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
if( IsType( FRAME_PCB_EDITOR ) )
{
if( reBuild_ratsnest || deep_reBuild_ratsnest )
{
// Connectivity may have changed; rebuild internal caches to remove stale items
GetBoard()->BuildConnectivity();
Compile_Ratsnest( false );
}
if( solder_mask_dirty )
HideSolderMask();