diff options
-rw-r--r-- | core/qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 1034316bb..f9e504ece 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -187,7 +187,7 @@ static bool parseCoord(const QString& txt, int& pos, const QString& positives, (txt[pos] == ',' || txt[pos] == ';')) { // next coordinate coming up // eat the ',' and any subsequent white space - while (txt[++pos].isSpace()) + while (++pos < txt.size() && txt[pos].isSpace()) /* nothing */ ; break; } else { |