Skip to content

Commit

Permalink
Fixed unparseArrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Nov 28, 2015
1 parent 99d9c6f commit f26330a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions OMEdit/OMEditGUI/Util/StringHandler.cpp
Expand Up @@ -1025,16 +1025,12 @@ QStringList StringHandler::unparseArrays(QString value)
}

/* skip the whole quotes section */
if (value.at(i) == '"')
{
if (value.at(i) == '"') {
i++;
while (value.at(i) != '"')
{
while (value.at(i) != '"') {
i++;
if (value.at(i) == '"' && value.at(i+1) != ',') {
if (value.at(i+1) != '}') {
i+=2;
}
if (value.at(i-1) == '\\' && value.at(i) == '"') {
i+=1;
}
}
}
Expand Down

0 comments on commit f26330a

Please sign in to comment.