Skip to content

Commit

Permalink
Reader: do not remove extra symbols in empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
iamantony committed Mar 6, 2018
1 parent 92a44a2 commit 12956b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources/reader.cpp
Expand Up @@ -485,6 +485,11 @@ void ReaderPrivate::removeExtraSymbols(QStringList& elements,
for (int i = 0; i < elements.size(); ++i)
{
QStringRef str(&elements.at(i));
if (str.isEmpty())
{
continue;
}

int startPos = 0, endPos = str.size() - 1;

// Find first non-space char
Expand Down

0 comments on commit 12956b4

Please sign in to comment.