From 86132ad16b3629252a717edc7b09f02cdfdd1785 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Sun, 6 Jul 2014 23:41:29 -0500 Subject: [PATCH] add aDocName to NETLIST::Format() --- pcbnew/pcb_netlist.cpp | 4 ++-- pcbnew/pcb_netlist.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/pcb_netlist.cpp b/pcbnew/pcb_netlist.cpp index 70c2d0e7f3..db56251d8a 100644 --- a/pcbnew/pcb_netlist.cpp +++ b/pcbnew/pcb_netlist.cpp @@ -137,11 +137,11 @@ void COMPONENT::Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl ) } -void NETLIST::Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl ) +void NETLIST::Format( const char* aDocName, OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl ) { int nl = aNestLevel; - aOut->Print( nl, "(back_annotation\n" ); + aOut->Print( nl, "(%s\n", aDocName ); for( unsigned i = 0; i < m_components.size(); i++ ) { diff --git a/pcbnew/pcb_netlist.h b/pcbnew/pcb_netlist.h index e48385c9fe..79cc26277e 100644 --- a/pcbnew/pcb_netlist.h +++ b/pcbnew/pcb_netlist.h @@ -330,7 +330,7 @@ public: */ bool AnyFootprintsChanged() const; - void Format( OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl = 0 ); + void Format( const char* aDocName, OUTPUTFORMATTER* aOut, int aNestLevel, int aCtl = 0 ); #define CTL_OMIT_EXTRA (1<<0) #define CTL_OMIT_NETS (1<<1) @@ -340,7 +340,7 @@ public: void FormatBackAnnotation( OUTPUTFORMATTER* aOut ) { - Format( aOut, 0, CTL_FOR_BACKANNO ); + Format( "back_annotation", aOut, 0, CTL_FOR_BACKANNO ); } };