From 7f7910d92294392cf57a9637b12815be2836c294 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 4 Apr 2022 17:39:33 +0100 Subject: [PATCH] Dirty text caches in pcb point editor. Fixes https://gitlab.com/kicad/code/kicad/issues/11319 --- pcbnew/tools/pcb_point_editor.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_point_editor.cpp b/pcbnew/tools/pcb_point_editor.cpp index ca5d6df168..0b3a7268d4 100644 --- a/pcbnew/tools/pcb_point_editor.cpp +++ b/pcbnew/tools/pcb_point_editor.cpp @@ -40,7 +40,9 @@ using namespace std::placeholders; #include #include #include +#include #include +#include #include #include #include @@ -1226,9 +1228,15 @@ void PCB_POINT_EDITOR::updateItem() const } // Update relative coordinates for footprint shapes - if( FP_SHAPE* fpShape = dyn_cast( item ) ) + if( FP_SHAPE* fpShape = dynamic_cast( item ) ) fpShape->SetLocalCoord(); + // Nuke outline font render caches + if( PCB_TEXTBOX* textBox = dynamic_cast( item ) ) + textBox->ClearRenderCache(); + else if( FP_TEXTBOX* fpTextBox = dynamic_cast( item ) ) + fpTextBox->ClearRenderCache(); + break; }