fix EDA_ITEM::Show() prototype bug, fix KICAD_PLUGIN::Save() problem with netclasses.

This commit is contained in:
Dick Hollenbeck
2011-12-14 11:25:42 -06:00
parent 02bb2111e2
commit 463c17b807
57 changed files with 158 additions and 274 deletions
+3 -1
View File
@@ -94,7 +94,7 @@ const char* ShowType( NETLIST_ITEM_T aType )
}
void NETLIST_OBJECT::Show( std::ostream& out, int ndx )
void NETLIST_OBJECT::Show( std::ostream& out, int ndx ) const
{
wxString path = m_SheetList.PathHumanReadable();
@@ -114,8 +114,10 @@ void NETLIST_OBJECT::Show( std::ostream& out, int ndx )
switch( m_Type )
{
case NET_PIN:
/* GetRef() needs to be const
out << " <refOfComp>" << ((SCH_COMPONENT*)m_Link)->GetRef(&m_SheetList).mb_str()
<< "</refOfComp>\n";
*/
if( m_Comp )
m_Comp->Show( 1, out );