File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ unsigned AsciiReader::readData()
163
163
SamplePack* AsciiReader::parseLine (const QString& line) const
164
164
{
165
165
auto separatedValues = line.split (delimiter, QString::SkipEmptyParts);
166
+ QString strippedValue;
166
167
unsigned numComingChannels = separatedValues.length ();
167
168
168
169
// check number of channels (skipped if auto num channels is enabled)
@@ -177,17 +178,18 @@ SamplePack* AsciiReader::parseLine(const QString& line) const
177
178
auto samples = new SamplePack (1 , numComingChannels);
178
179
for (unsigned ci = 0 ; ci < numComingChannels; ci++)
179
180
{
181
+ strippedValue = separatedValues[ci].split (' :' , QString::SkipEmptyParts).back ();
180
182
bool ok;
181
183
if (isHexData)
182
184
{
183
- samples->data (ci)[0 ] = separatedValues[ci] .toInt (&ok,16 );
185
+ samples->data (ci)[0 ] = strippedValue .toInt (&ok,16 );
184
186
}
185
187
else
186
188
{
187
- samples->data (ci)[0 ] = separatedValues[ci] .toDouble (&ok);
189
+ samples->data (ci)[0 ] = strippedValue .toDouble (&ok);
188
190
if (!ok)
189
191
{
190
- samples->data (ci)[0 ] = separatedValues[ci] .toInt (&ok,0 );
192
+ samples->data (ci)[0 ] = strippedValue .toInt (&ok,0 );
191
193
}
192
194
}
193
195
if (!ok)
You can’t perform that action at this time.
0 commit comments