Flip all layers of a zone.

Fixes https://gitlab.com/kicad/code/kicad/issues/10621
This commit is contained in:
Jeff Young 2022-02-21 18:34:16 +00:00
parent a24912d01d
commit 6ccaf5e27d
1 changed files with 1 additions and 4 deletions

View File

@ -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 ) );
}