diff --git a/plugins/astyle/astyle_stringiterator.cpp b/plugins/astyle/astyle_stringiterator.cpp --- a/plugins/astyle/astyle_stringiterator.cpp +++ b/plugins/astyle/astyle_stringiterator.cpp @@ -74,7 +74,7 @@ astyle::streamoff AStyleStringIterator::getPeekStart() const { - return m_peekStart; + return m_peekStart == -1 ? 0 : m_peekStart; }