Save reportHead and reportTail lines as well as report lines.

Fixes https://gitlab.com/kicad/code/kicad/issues/7700
This commit is contained in:
Jeff Young 2021-02-25 14:38:10 +00:00
parent caa18c8e16
commit 4d2a1055d3
1 changed files with 8 additions and 4 deletions

View File

@ -350,13 +350,17 @@ void WX_HTML_REPORT_PANEL::onBtnSaveToFile( wxCommandEvent& event )
return; 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 ); ConvertSmartQuotesAndDashes( &s );
f.Write( s ); f.Write( s );
}
} }
m_reportFileName = fn.GetFullPath(); m_reportFileName = fn.GetFullPath();
f.Close(); f.Close();
} }