Bug was due to treating an empty token as a 0, so fixed the string parsing to ignore empty tokens

This commit is contained in:
Andy Huska
2022-09-17 13:04:39 -05:00
parent 2afd41b681
commit 6cf404701e
+1 -1
View File
@@ -898,7 +898,7 @@ void FrameSenderWindow::processCellChange(int line, int col)
case 6: //Data bytes
for (int i = 0; i < 8; i++) sendingData[line].payload().data()[i] = 0;
tokens = ui->tableSender->item(line, 6)->text().split(" ");
tokens = ui->tableSender->item(line, 6)->text().split(" ", QString::SkipEmptyParts);
arr.clear();
arr.reserve(tokens.count());
for (int j = 0; j < tokens.count(); j++)