From 2320a67c301893a71f5a6eca7c3de773b79757e4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 2 Aug 2020 11:54:25 +0100 Subject: [PATCH] Fix issues with DRAWSEGMENT undo. --- pcbnew/class_drawsegment.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/class_drawsegment.cpp b/pcbnew/class_drawsegment.cpp index 4658033b9c..52df854d30 100644 --- a/pcbnew/class_drawsegment.cpp +++ b/pcbnew/class_drawsegment.cpp @@ -1193,6 +1193,11 @@ void DRAWSEGMENT::SwapData( BOARD_ITEM* aImage ) std::swap( m_BezierC2, image->m_BezierC2 ); std::swap( m_BezierPoints, image->m_BezierPoints ); std::swap( m_Poly, image->m_Poly ); + std::swap( m_Layer, image->m_Layer ); + std::swap( m_Flags, image->m_Flags ); + std::swap( m_Status, image->m_Status ); + std::swap( m_Parent, image->m_Parent ); + std::swap( m_forceVisible, image->m_forceVisible ); }