summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercodeview.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-09-01 13:24:34 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-09-01 13:24:34 (GMT)
commit6e021a61316ff0b281e8542858d4442cef7ed70c (patch)
tree19ed48c75e376b5258db06626f79067a7335852b /src/scripttools/debugging/qscriptdebuggercodeview.cpp
parentd448205c2e7ae31ae0814696c2c1d38ff56385bd (diff)
parentf79ce83f487b384133a2657f33f7c2853d8e89a2 (diff)
downloadQt-6e021a61316ff0b281e8542858d4442cef7ed70c.zip
Qt-6e021a61316ff0b281e8542858d4442cef7ed70c.tar.gz
Qt-6e021a61316ff0b281e8542858d4442cef7ed70c.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-doc-team: (26 commits) Add a brief to all demos and examples for manifest QSslCertificate: also check common name for blacklisted certificates QSslCertificate: regenerate blacklisted certificates, they were expired don't crash when destroying the shortcuts Doc: added since tag to QDateTime::msecsTo QSslCertificate: blacklist fraudulent *.google.com QDeclarative::hasActiveFocus should return false for hidden items FocusScope's focusItem must always be a descendent Disable activeqt on win32-g++ (it doesn't build). fix warning remove unused functions Make the DBus timeout configurable in QDBusAbstractInterface. Fix a typo in qt-conf docs. Revert "Fix build with the Clang compiler" Added missing no_include_pwd check Replace 'i < len-1 && func(i+1)' by 'i+1 < len && func(i+1)' Fix build with the Clang compiler Change spacing of title in offline style. Add support for rawFonts loaded from data in FaceId examples: fix compilation with namespaced Qt. ...
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercodeview.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggercodeview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercodeview.cpp b/src/scripttools/debugging/qscriptdebuggercodeview.cpp
index 7c99723..65fd366 100644
--- a/src/scripttools/debugging/qscriptdebuggercodeview.cpp
+++ b/src/scripttools/debugging/qscriptdebuggercodeview.cpp
@@ -233,7 +233,7 @@ bool QScriptDebuggerCodeView::event(QEvent *e)
return false;
}
int pos2 = linePosition - 1;
- while ((pos2 < contents.size()-1) && isIdentChar(contents.at(pos2+1)))
+ while ((pos2+1 < contents.size()) && isIdentChar(contents.at(pos2+1)))
++pos2;
QString ident = contents.mid(pos, pos2 - pos + 1);