Save all stroke parameters of sch & lib shapes.
We were failing to save the line style, which caused ERC errors when DEFAULT != SOLID.
This commit is contained in:
parent
76535d8572
commit
c025b4c73d
|
@ -329,14 +329,11 @@ void SCH_SEXPR_PLUGIN_CACHE::saveSymbolDrawItem( LIB_ITEM* aItem, OUTPUTFORMATTE
|
||||||
case LIB_SHAPE_T:
|
case LIB_SHAPE_T:
|
||||||
{
|
{
|
||||||
LIB_SHAPE* shape = static_cast<LIB_SHAPE*>( aItem );
|
LIB_SHAPE* shape = static_cast<LIB_SHAPE*>( aItem );
|
||||||
STROKE_PARAMS stroke;
|
STROKE_PARAMS stroke = shape->GetStroke();
|
||||||
FILL_T fillMode = shape->GetFillMode();
|
FILL_T fillMode = shape->GetFillMode();
|
||||||
|
COLOR4D fillColor = shape->GetFillColor();
|
||||||
bool isPrivate = shape->IsPrivate();
|
bool isPrivate = shape->IsPrivate();
|
||||||
|
|
||||||
stroke.SetWidth( shape->GetWidth() );
|
|
||||||
|
|
||||||
COLOR4D fillColor = shape->GetFillColor();
|
|
||||||
|
|
||||||
switch( shape->GetShape() )
|
switch( shape->GetShape() )
|
||||||
{
|
{
|
||||||
case SHAPE_T::ARC:
|
case SHAPE_T::ARC:
|
||||||
|
|
Loading…
Reference in New Issue