Browse Source

Save all stroke parameters of sch & lib shapes.

We were failing to save the line style, which caused ERC errors when
DEFAULT != SOLID.
7.0
Jeff Young 4 years ago
parent
commit
c025b4c73d
  1. 7
      eeschema/sch_plugins/kicad/sch_sexpr_lib_plugin_cache.cpp

7
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<LIB_SHAPE*>( 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:

Loading…
Cancel
Save