From eac65635be2bc6c639cf540ce6d9a3fe17260616 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 25 Dec 2021 18:05:28 +0000 Subject: [PATCH] Redraw items when clearance annotations change. Fixes https://gitlab.com/kicad/code/kicad/issues/10112 --- pcbnew/pcb_edit_frame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 4a7fe78082..ab65aa19d1 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -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( aItem ); + return dynamic_cast( aItem ) + || dynamic_cast( aItem ) + || dynamic_cast( aItem ); } ); GetCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );