Fix drawing arcs on Edge.Cuts layer
Fixes: lp:1666822 * https://bugs.launchpad.net/kicad/+bug/1666822
This commit is contained in:
parent
a5ac165c4b
commit
275ba503d1
|
@ -514,6 +514,9 @@ int DRAWING_TOOL::DrawDimension( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
LAYER_ID layer = getDrawingLayer();
|
LAYER_ID layer = getDrawingLayer();
|
||||||
|
|
||||||
|
if( layer == Edge_Cuts ) // dimensions are not allowed on EdgeCuts
|
||||||
|
layer = Dwgs_User;
|
||||||
|
|
||||||
// Init the new item attributes
|
// Init the new item attributes
|
||||||
dimension = new DIMENSION( m_board );
|
dimension = new DIMENSION( m_board );
|
||||||
dimension->SetLayer( layer );
|
dimension->SetLayer( layer );
|
||||||
|
@ -1115,9 +1118,6 @@ bool DRAWING_TOOL::drawArc( DRAWSEGMENT*& aGraphic )
|
||||||
{
|
{
|
||||||
LAYER_ID layer = getDrawingLayer();
|
LAYER_ID layer = getDrawingLayer();
|
||||||
|
|
||||||
if( layer == Edge_Cuts ) // dimensions are not allowed on EdgeCuts
|
|
||||||
layer = Dwgs_User;
|
|
||||||
|
|
||||||
// Init the new item attributes
|
// Init the new item attributes
|
||||||
aGraphic->SetShape( S_ARC );
|
aGraphic->SetShape( S_ARC );
|
||||||
aGraphic->SetAngle( 0.0 );
|
aGraphic->SetAngle( 0.0 );
|
||||||
|
|
Loading…
Reference in New Issue