Don't switch to non-copper layer when drawing text & graphics.

We now allow these items on copper layers (and do the necessary
DRC, etc.)

Fixes: lp:1796500
* https://bugs.launchpad.net/kicad/+bug/1796500
This commit is contained in:
Jeff Young 2019-04-01 16:57:05 +01:00
parent ca25f352ce
commit 920d9e3d46
1 changed files with 1 additions and 15 deletions

View File

@ -1808,21 +1808,7 @@ int DRAWING_TOOL::getSegmentWidth( PCB_LAYER_ID aLayer ) const
PCB_LAYER_ID DRAWING_TOOL::getDrawingLayer() const
{
PCB_LAYER_ID layer = m_frame->GetActiveLayer();
if( IsCopperLayer( layer ) )
{
if( layer == F_Cu )
layer = F_SilkS;
else if( layer == B_Cu )
layer = B_SilkS;
else
layer = Dwgs_User;
m_frame->SetActiveLayer( layer );
}
return layer;
return m_frame->GetActiveLayer();
}