From c9ddcd618d26b00300fb52baf4fe6a1795480122 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Jun 2024 23:35:06 +0100 Subject: [PATCH] Make sure to reset the cached viewport. --- pcbnew/pcb_edit_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 677d9f64ec..10ba3d6122 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -589,6 +589,8 @@ void PCB_EDIT_FRAME::redrawNetnames() int maxCount = 200; int count = 0; + m_lastNetnamesViewport = viewport; + // Inflate to catch most of the track width BOX2I_MINMAX clipbox( BOX2ISafe( viewport.Inflate( pcbIUScale.mmToIU( 2.0 ) ) ) );