From 275ba503d10cb9e09dea5ede54b123b82e3c7b59 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 2 Mar 2017 13:52:23 +0100 Subject: [PATCH] Fix drawing arcs on Edge.Cuts layer Fixes: lp:1666822 * https://bugs.launchpad.net/kicad/+bug/1666822 --- pcbnew/tools/drawing_tool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index a5d9066fb7..6b845bc27b 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -514,6 +514,9 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent ) { LAYER_ID layer = getDrawingLayer(); + if( layer == Edge_Cuts ) // dimensions are not allowed on EdgeCuts + layer = Dwgs_User; + // Init the new item attributes dimension = new DIMENSION( m_board ); dimension->SetLayer( layer ); @@ -1115,9 +1118,6 @@ bool DRAWING_TOOL::drawArc( DRAWSEGMENT*& aGraphic ) { LAYER_ID layer = getDrawingLayer(); - if( layer == Edge_Cuts ) // dimensions are not allowed on EdgeCuts - layer = Dwgs_User; - // Init the new item attributes aGraphic->SetShape( S_ARC ); aGraphic->SetAngle( 0.0 );