From 920d9e3d46f89dd60ed52553ab635a697227e21b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 1 Apr 2019 16:57:05 +0100 Subject: [PATCH] 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 --- pcbnew/tools/drawing_tool.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index c118c1ea21..f6cf412509 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -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(); }