From f11d9504481839e6b18a24ba9240b94eaed9c462 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 11 Jul 2019 18:19:05 +0100 Subject: [PATCH] Don't let visibility bit get nuked when updating effects. Fixes: lp:1836183 * https://bugs.launchpad.net/kicad/+bug/1836183 (cherry picked from commit 6c9e34e799a5b79d8926039857f7751b99da901e) --- pcbnew/dialogs/dialog_exchange_footprints.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/dialogs/dialog_exchange_footprints.cpp b/pcbnew/dialogs/dialog_exchange_footprints.cpp index caf002e0d4..f25695c828 100644 --- a/pcbnew/dialogs/dialog_exchange_footprints.cpp +++ b/pcbnew/dialogs/dialog_exchange_footprints.cpp @@ -386,7 +386,12 @@ void processTextItem( const TEXTE_MODULE& aSrc, TEXTE_MODULE& aDest, } if( !resetTextEffects ) + { + // Careful: the visible bit is also in Effects + bool visible = aDest.IsVisible(); aDest.SetEffects( aSrc ); + aDest.SetVisible( visible ); + } }