Skip to content

Commit 6eea32d

Browse files
committed
Fixed issue with processing log output that uses math expression.
1 parent 38a7a9b commit 6eea32d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

FECore/DataRecord.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@ std::vector<DataRecordItem> ProcessDataString(const char* szdata)
279279
std::vector<DataRecordItem> data;
280280
if ((szdata == nullptr) || (szdata[0] == 0)) return data;
281281

282+
// if szdata starts with an equal sign, it's a math expression and we just return it as a single item
283+
if (szdata[0] == '=')
284+
{
285+
DataRecordItem item;
286+
item.name = szdata;
287+
data.push_back(item);
288+
return data;
289+
}
290+
282291
std::string s = szdata;
283292
while (!s.empty())
284293
{

0 commit comments

Comments
 (0)