mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
remove columns with empty header
This commit is contained in:
parent
bdea1c0760
commit
69f13cface
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ CSV CSV::fromFile(QString filename, char sep)
|
|||
if(firstLine) {
|
||||
// create columns and set headers
|
||||
for(auto l : stringList) {
|
||||
if(l.isEmpty()) {
|
||||
// header needs to be present, abort here
|
||||
break;
|
||||
}
|
||||
Column c;
|
||||
c.header = l;
|
||||
csv._columns.push_back(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue