From 6ccaf5e27d155126583ef8e3f9bf6110c1642bfe Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 21 Feb 2022 18:34:16 +0000 Subject: [PATCH] Flip all layers of a zone. Fixes https://gitlab.com/kicad/code/kicad/issues/10621 --- pcbnew/zone.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index f5c7d2134f..b4c4231ef8 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -717,10 +717,7 @@ void ZONE::Flip( const wxPoint& aCentre, bool aFlipLeftRight ) Mirror( aCentre, aFlipLeftRight ); int copperLayerCount = GetBoard()->GetCopperLayerCount(); - if( GetIsRuleArea() ) - SetLayerSet( FlipLayerMask( GetLayerSet(), copperLayerCount ) ); - else - SetLayer( FlipLayer( GetLayer(), copperLayerCount ) ); + SetLayerSet( FlipLayerMask( GetLayerSet(), copperLayerCount ) ); }