refs #345 Fixed mistake.

This commit is contained in:
Mathew Sutcliffe
2014-11-01 13:26:33 +00:00
parent 798b198d4e
commit 69e8ff1c5c

View File

@@ -17,7 +17,7 @@ namespace BlackMisc
for (const auto c : string)
{
if (c == '(') { level++; }
if (c == ')') { level++; }
if (c == ')') { level--; }
if (c == ',' && level == 0) { m_raw.push_back(current.trimmed()); current.clear(); }
else { current += c; }
}