From c025b4c73ddbacbb2b3e4a9fa4eb6ae500ea0c52 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 3 Mar 2022 14:37:04 +0000 Subject: [PATCH] Save all stroke parameters of sch & lib shapes. We were failing to save the line style, which caused ERC errors when DEFAULT != SOLID. --- eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp index 706deba204..541407a836 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp @@ -329,14 +329,11 @@ void SCH_SEXPR_PLUGIN_CACHE::saveSymbolDrawItem( LIB_ITEM* aItem, OUTPUTFORMATTE case LIB_SHAPE_T: { LIB_SHAPE* shape = static_cast( aItem ); - STROKE_PARAMS stroke; + STROKE_PARAMS stroke = shape->GetStroke(); FILL_T fillMode = shape->GetFillMode(); + COLOR4D fillColor = shape->GetFillColor(); bool isPrivate = shape->IsPrivate(); - stroke.SetWidth( shape->GetWidth() ); - - COLOR4D fillColor = shape->GetFillColor(); - switch( shape->GetShape() ) { case SHAPE_T::ARC: