Skip to content

Commit

Permalink
Fix crash when opening some logs with bad format
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Nov 15, 2023
1 parent 4cb8182 commit 0de08d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/pageloganalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,9 @@ void PageLogAnalysis::openLog(QByteArray data)
QStringList tokens = in.readLine().split(";");
QVector<double> entry;
for (int i = 0;i < tokens.size();i++) {
if (i >= entryLastData.size()) {
break;
}
if (!tokens.at(i).isEmpty()) {
entryLastData[i] = tokens.at(i).toDouble();
}
Expand Down

0 comments on commit 0de08d1

Please sign in to comment.