Redraw items when clearance annotations change.
Fixes https://gitlab.com/kicad/code/kicad/issues/10112
This commit is contained in:
parent
3dd8c57bdd
commit
eac65635be
|
@ -1800,7 +1800,9 @@ void PCB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
||||||
GetCanvas()->GetView()->UpdateAllItemsConditionally( KIGFX::REPAINT,
|
GetCanvas()->GetView()->UpdateAllItemsConditionally( KIGFX::REPAINT,
|
||||||
[]( KIGFX::VIEW_ITEM* aItem ) -> bool
|
[]( 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 );
|
GetCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
|
||||||
|
|
Loading…
Reference in New Issue