Browse Source

fix stylesheet

pull/1/head
Dick Hollenbeck 16 years ago
parent
commit
0980306f2a
  1. 5
      eeschema/netlist_control.cpp
  2. 7
      eeschema/plugins/netlist_form_pads-pcb.xsl

5
eeschema/netlist_control.cpp

@ -189,7 +189,9 @@ WinEDA_NetlistFrame::WinEDA_NetlistFrame( WinEDA_SchematicFrame* parent ) :
SetSizer( GeneralBoxSizer );
m_NoteBook = new wxNotebook( this, ID_NETLIST_NOTEBOOK,
wxDefaultPosition, wxDefaultSize );
wxDefaultPosition, wxDefaultSize,
wxNB_TOP ); // @todo: tabs on top are being hidden on linux
GeneralBoxSizer->Add( m_NoteBook, 0, wxGROW | wxALL, 5 );
// Add notebook pages:
@ -229,6 +231,7 @@ WinEDA_NetlistFrame::WinEDA_NetlistFrame( WinEDA_SchematicFrame* parent ) :
// GetSizer()->Fit( this );
GetSizer()->SetSizeHints( this );
Centre();
}

7
eeschema/plugins/netlist_form_pads-pcb.xsl

@ -20,14 +20,15 @@
<!-- for each component -->
<xsl:template match="comp">
<xsl:text> </xsl:text>
<xsl:value-of select="@ref"/>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test = "footprint = ''">
<xsl:text>unknown</xsl:text>
<xsl:when test = "footprint != '' ">
<xsl:apply-templates select="footprint"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="footprint"/>
<xsl:text>unknown</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text>&nl;</xsl:text>

Loading…
Cancel
Save