From 5079881f3ff9123b147835408eac976edf18ccb2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 10 Feb 2021 08:45:17 +0100 Subject: [PATCH] BuildFootprintPolygonOutlines(): fix incorrect outlines when no pad in the footprint. It is used in 3D viewer to build a "board" polygonal outlines. The polygon was empty when no pad and no item on ede cuts found (i.e. logos) Fixes #7448 https://gitlab.com/kicad/code/kicad/issues/7448 --- pcbnew/convert_drawsegment_list_to_polygon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/convert_drawsegment_list_to_polygon.cpp b/pcbnew/convert_drawsegment_list_to_polygon.cpp index 5b35285072..108f4254a2 100644 --- a/pcbnew/convert_drawsegment_list_to_polygon.cpp +++ b/pcbnew/convert_drawsegment_list_to_polygon.cpp @@ -1120,8 +1120,8 @@ bool BuildFootprintPolygonOutlines( BOARD* aBoard, SHAPE_POLY_SET& aOutlines, in return false; } - // A closed outline was found - if( success ) + // A closed outline was found on Edge_Cuts + if( success && outlines.OutlineCount() ) { wxLogTrace( traceBoardOutline, "Closed outline found" );