From 37b19c4df7bf1b45908ab116dd7abbe988e0f332 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 17 Mar 2024 20:38:47 +0000 Subject: [PATCH] Handle table layer in undo. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17437 --- pcbnew/pcb_table.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/pcb_table.cpp b/pcbnew/pcb_table.cpp index 56b818fd9e..faed4f99db 100644 --- a/pcbnew/pcb_table.cpp +++ b/pcbnew/pcb_table.cpp @@ -75,6 +75,9 @@ void PCB_TABLE::swapData( BOARD_ITEM* aImage ) PCB_TABLE* table = static_cast( aImage ); + std::swap( m_layer, table->m_layer ); + std::swap( m_isLocked, table->m_isLocked ); + std::swap( m_strokeExternal, table->m_strokeExternal ); std::swap( m_strokeHeader, table->m_strokeHeader ); std::swap( m_borderStroke, table->m_borderStroke );