From 3587789ae2c22c1b8f44bd7fc3878a4b7585e475 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 25 Aug 2018 23:18:29 +0100 Subject: [PATCH] Update canvas after changing netclass settings. Fixes: lp:1786937 * https://bugs.launchpad.net/kicad/+bug/1786937 --- pcbnew/pcb_edit_frame.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index f4898e7510..64c41899c1 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -810,6 +810,13 @@ void PCB_EDIT_FRAME::ShowDesignRulesEditor( wxCommandEvent& event ) ReCreateAuxiliaryToolbar(); m_Layers->ReFillRender(); OnModify(); + + if( GetGalCanvas() ) + { + GetGalCanvas()->GetView()->RecacheAllItems(); + GetGalCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED ); + } + GetCanvas()->Refresh(); } }