# HG changeset patch # User Chris Cannam # Date 1592477717 -3600 # Node ID bed42ce4d3ab74a473060d6eb6303d611308f320 # Parent 1b8c4ee06f6d1c11e68a9b819a1c09eac36cc2a4 Include the header row in the example output after all - it's less confusing I think to have it displayed (but e.g. italicised) than to have it appear and disappear diff -r 1b8c4ee06f6d -r bed42ce4d3ab data/fileio/CSVFormat.cpp --- a/data/fileio/CSVFormat.cpp Wed Jun 17 18:01:00 2020 +0100 +++ b/data/fileio/CSVFormat.cpp Thu Jun 18 11:55:17 2020 +0100 @@ -260,10 +260,11 @@ // Start again with the qualities: m_columnQualities.clear(); m_prevValues.clear(); - } else if (lineno < firstLine + 10) { - // Not a header row, so add it to the example column output + } + + if (lineno < firstLine + 10) { m_example.push_back(list); - if (lineno == firstLine || cols > m_maxExampleCols) { + if (lineno == 0 || cols > m_maxExampleCols) { m_maxExampleCols = cols; } }