From 3b7aa48d16a2cd3567afff4dd16b4defdd467131 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 27 Feb 2017 08:12:07 +0100 Subject: [PATCH] Pcbnew: fix bug: files written when layers have numeric name (like +24)cannot be read Remove a printf clearly for debug, certainly a very old bug. --- eeschema/sch_sheet_pin.cpp | 3 --- pcbnew/pcb_parser.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/eeschema/sch_sheet_pin.cpp b/eeschema/sch_sheet_pin.cpp index 048ffb1a98..b4c76977c2 100644 --- a/eeschema/sch_sheet_pin.cpp +++ b/eeschema/sch_sheet_pin.cpp @@ -206,9 +206,6 @@ void SCH_SHEET_PIN::ConstrainOnEdge( wxPoint Pos ) if( m_Pos.x > (sheet->m_pos.x + sheet->m_size.x) ) m_Pos.x = sheet->m_pos.x + sheet->m_size.x; } - - printf( "centre %d %d, pos %d %d, pinpos %d %d, edge %d\n", - center.x, center.y, Pos.x, Pos.y, m_Pos.x, m_Pos.y, m_edge); } diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 59c6ae01a5..45d6c690d7 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -790,7 +790,7 @@ void PCB_PARSER::parseLayer( LAYER* aLayer ) throw( IO_ERROR, PARSE_ERROR ) // this layer_num is not used, we DO depend on LAYER_T however. LAYER_NUM layer_num = parseInt( "layer index" ); - NeedSYMBOL(); + NeedSYMBOLorNUMBER(); name = CurText(); NeedSYMBOL();