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; }