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: