From db712ea643fe566f97f713a65bf88a41a5311c9e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 22 Jul 2018 17:11:16 +0200 Subject: [PATCH] Footprint editor: display a warning when trying to created a custom pad shape with a Bezier curve. Currently, Bezier curve (S_CURVE shape) is not supported in a custom pad shape. --- pcbnew/tools/footprint_editor_tools.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/tools/footprint_editor_tools.cpp b/pcbnew/tools/footprint_editor_tools.cpp index e90a1e8b32..51e376cc54 100644 --- a/pcbnew/tools/footprint_editor_tools.cpp +++ b/pcbnew/tools/footprint_editor_tools.cpp @@ -348,6 +348,13 @@ int MODULE_EDITOR_TOOLS::CreatePadFromShapes( const TOOL_EVENT& aEvent ) { auto em = static_cast ( item ); + // Currently, S_CURVE shape is not supported. so warn the user + if( em->GetShape() == S_CURVE ) + { + illegalItemsFound = true; + break; + } + PAD_CS_PRIMITIVE shape( em->GetShape() ); shape.m_Start = em->GetStart(); shape.m_End = em->GetEnd();