diff options
Diffstat (limited to 'src/corelib/text/qstring.cpp')
-rw-r--r-- | src/corelib/text/qstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index c955cb8736..499d8dcade 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -4475,9 +4475,9 @@ QString QString::section(const QString &sep, qsizetype start, qsizetype end, Sec const QStringView §ion = sections.at(i); const bool empty = section.isEmpty(); if (x >= start) { - if(x == start) + if (x == start) first_i = i; - if(x == end) + if (x == end) last_i = i; if (x > start && i > 0) ret += sep; |