diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 4facd93f04..f1f05c9022 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -191,7 +191,7 @@ int DRAWING_TOOL::DrawRectangle( const TOOL_EVENT& aEvent ) MODULE* module = dynamic_cast( m_frame->GetModel() ); DRAWSEGMENT* rect = m_editModules ? new EDGE_MODULE( module ) : new DRAWSEGMENT; BOARD_COMMIT commit( m_frame ); - SCOPED_DRAW_MODE scopedDrawMode( m_mode, MODE::RECT ); + SCOPED_DRAW_MODE scopedDrawMode( m_mode, MODE::RECTANGLE ); OPT startingPoint = boost::make_optional( false, VECTOR2D( 0, 0 ) ); rect->SetFlags(IS_NEW ); diff --git a/pcbnew/tools/drawing_tool.h b/pcbnew/tools/drawing_tool.h index 3c2ca2633f..082608b109 100644 --- a/pcbnew/tools/drawing_tool.h +++ b/pcbnew/tools/drawing_tool.h @@ -64,7 +64,7 @@ public: { NONE, LINE, - RECT, + RECTANGLE, CIRCLE, ARC, TEXT,