diff --git a/pcbnew/plugins/pcad/pcb_footprint.cpp b/pcbnew/plugins/pcad/pcb_footprint.cpp index 63564c1f9e..69e4ee075d 100644 --- a/pcbnew/plugins/pcad/pcb_footprint.cpp +++ b/pcbnew/plugins/pcad/pcb_footprint.cpp @@ -476,23 +476,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; @@ -540,7 +523,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(); diff --git a/pcbnew/plugins/pcad/pcb_footprint.h b/pcbnew/plugins/pcad/pcb_footprint.h index 378920e2ce..9c74aa67ac 100644 --- a/pcbnew/plugins/pcad/pcb_footprint.h +++ b/pcbnew/plugins/pcad/pcb_footprint.h @@ -67,7 +67,6 @@ public: private: XNODE* FindPatternMultilayerSection( XNODE* aNode, wxString* aPatGraphRefName ); - wxString ModuleLayer( int aMirror ); }; } // namespace PCAD2KICAD