Fix PCAD silk layer for solder-side fp

The layer should be flipped based on the footprint mirror value rather
than the text mirror value (which is independent)

Fixes https://gitlab.com/kicad/code/kicad/issues/11652
This commit is contained in:
Seth Hillbrand 2022-05-31 13:01:48 -07:00
parent 3b9b150212
commit 6c0856c384
2 changed files with 1 additions and 19 deletions

View File

@ -475,23 +475,6 @@ void PCB_FOOTPRINT::Parse( XNODE* aNode, wxStatusBar* aStatusBar,
}
wxString PCB_FOOTPRINT::ModuleLayer( int aMirror )
{
wxString result;
// ///NOT ! {IntToStr(KiCadLayer)} NOT !
// / FOOTPRINTs ARE HARD PLACED ON COMPONENT OR COPPER LAYER.
// / IsFLIPPED--> MIRROR attribute is decision Point!!!
if( aMirror == 0 )
result = wxT( "15" ); // Components side
else
result = wxT( "0" ); // Copper side
return result;
}
void PCB_FOOTPRINT::AddToBoard()
{
int i;
@ -538,7 +521,7 @@ void PCB_FOOTPRINT::AddToBoard()
ref_text->SetMirrored( m_name.mirror );
ref_text->SetVisible( m_name.textIsVisible );
ref_text->SetLayer( m_name.mirror ? FlipLayer( m_KiCadLayer ) : m_KiCadLayer );
ref_text->SetLayer( m_Mirror ? FlipLayer( m_KiCadLayer ) : m_KiCadLayer );
// Calculate the actual position.
ref_text->SetDrawCoord();

View File

@ -67,7 +67,6 @@ public:
private:
XNODE* FindPatternMultilayerSection( XNODE* aNode, wxString* aPatGraphRefName );
wxString ModuleLayer( int aMirror );
};
} // namespace PCAD2KICAD