LTspice import: fill symbol rectangles with body color when needed.

This commit is contained in:
Alex Shvartzkop 2023-07-12 08:36:13 +05:00
parent 568a461080
commit 32fdb231b2
2 changed files with 5 additions and 2 deletions

View File

@ -1177,6 +1177,9 @@ void LTSPICE_SCH_PARSER::CreateRect( LTSPICE_SCHEMATIC::LT_SYMBOL& aLTSymbol, in
aRectangle->SetPosition( ToInvertedKicadCoords( lt_rect.BotRight ) );
aRectangle->SetEnd( ToInvertedKicadCoords( lt_rect.TopLeft ) );
aRectangle->SetStroke( getStroke( lt_rect.LineWidth, lt_rect.LineStyle ) );
if( aLTSymbol.SymAttributes[wxS( "Prefix" )] == wxS( "X" ) )
aRectangle->SetFillMode( FILL_T::FILLED_WITH_BG_BODYCOLOR );
}

View File

@ -203,11 +203,11 @@ public:
void CreateArc( LTSPICE_SCHEMATIC::LT_ASC& aAscfile, int aIndex, SCH_SHEET_PATH* aSheet );
/**
* Method for setting Text Justification.
* Method for plotting rectangle from Asc files
*
* @param aAscfile object representing asc file.
* @param aIndex index.
* @param aSheet a object on which the text is represented used for justification.
* @param aSheet a object on which the rectangle is represented.
*/
void CreateRect( LTSPICE_SCHEMATIC::LT_ASC& aAscfile, int aIndex, SCH_SHEET_PATH* aSheet );