Redraw items when clearance annotations change.

Fixes https://gitlab.com/kicad/code/kicad/issues/10112
This commit is contained in:
Jeff Young 2021-12-25 18:05:28 +00:00
parent 3dd8c57bdd
commit eac65635be
1 changed files with 3 additions and 1 deletions

View File

@ -1800,7 +1800,9 @@ void PCB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
GetCanvas()->GetView()->UpdateAllItemsConditionally( KIGFX::REPAINT,
[]( KIGFX::VIEW_ITEM* aItem ) -> bool
{
return dynamic_cast<RATSNEST_VIEW_ITEM*>( aItem );
return dynamic_cast<RATSNEST_VIEW_ITEM*>( aItem )
|| dynamic_cast<PCB_TRACK*>( aItem )
|| dynamic_cast<PAD*>( aItem );
} );
GetCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );