From 4d2a1055d3b6787d643c0706521e16b2cf01203a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 25 Feb 2021 14:38:10 +0000 Subject: [PATCH] Save reportHead and reportTail lines as well as report lines. Fixes https://gitlab.com/kicad/code/kicad/issues/7700 --- common/dialogs/wx_html_report_panel.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index 1bdb56c284..88d20bc610 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -350,13 +350,17 @@ void WX_HTML_REPORT_PANEL::onBtnSaveToFile( wxCommandEvent& event ) return; } - for( const REPORT_LINE& l : m_report ) + for( REPORT_LINES section : { m_reportHead, m_report, m_reportTail } ) { - wxString s = generatePlainText( l ); + for( const REPORT_LINE& l : section ) + { + wxString s = generatePlainText( l ); - ConvertSmartQuotesAndDashes( &s ); - f.Write( s ); + ConvertSmartQuotesAndDashes( &s ); + f.Write( s ); + } } + m_reportFileName = fn.GetFullPath(); f.Close(); }