From 8b295a3bd738196cb91a4f6cecacef9856c10b42 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 5 Nov 2020 20:20:16 +0000 Subject: [PATCH] Handle properties dialog while creating an arc. Fixes https://gitlab.com/kicad/code/kicad/issues/6215 --- pcbnew/tools/drawing_tool.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index a2cd8af55e..f9040c8c1f 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1666,11 +1666,20 @@ bool DRAWING_TOOL::drawArc( const std::string& aTool, PCB_SHAPE** aGraphic, bool } else if( evt->IsAction( &PCB_ACTIONS::properties ) ) { - if( firstPoint ) + if( arcManager.GetStep() == KIGFX::PREVIEW::ARC_GEOM_MANAGER::SET_START ) + { + graphic->SetAngle( 900, true ); + frame()->OnEditItemRequest( graphic ); + m_view->Update( &preview ); + frame()->SetMsgPanel( graphic ); + break; + } + else if( arcManager.GetStep() == KIGFX::PREVIEW::ARC_GEOM_MANAGER::SET_ANGLE ) { frame()->OnEditItemRequest( graphic ); m_view->Update( &preview ); frame()->SetMsgPanel( graphic ); + break; } } else if( evt->IsClick( BUT_RIGHT ) )