From 8aa8451434a0e2f9a7f7cbff37de59901699e44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Thor=C3=A9n?= <1196277@bugs.launchpad.net> Date: Sun, 30 Jun 2013 19:40:33 +0200 Subject: [PATCH] All: Fix bug #1196277 (pcbnew does not save all parts of the title block to the kicad_pcb file) --- common/worksheet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/worksheet.cpp b/common/worksheet.cpp index d3c242f1be..88bf97c179 100644 --- a/common/worksheet.cpp +++ b/common/worksheet.cpp @@ -314,11 +314,11 @@ void TITLE_BLOCK::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aCont aFormatter->Print( aNestLevel+1, "(company %s)\n", aFormatter->Quotew( GetCompany() ).c_str() ); - for( int ii = 0; ii < 3; ii++ ) + for( int ii = 0; ii < 4; ii++ ) { if( !GetComment(ii).IsEmpty() ) aFormatter->Print( aNestLevel+1, "(comment %d %s)\n", ii+1, - aFormatter->Quotew( GetComment(1) ).c_str() ); + aFormatter->Quotew( GetComment(ii) ).c_str() ); } aFormatter->Print( aNestLevel, ")\n\n" );