summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercodeview.cpp
diff options
context:
space:
mode:
authorSinan Tanilkan <sinan.tanilkan@nokia.com>2011-09-21 11:45:02 (GMT)
committerSinan Tanilkan <sinan.tanilkan@nokia.com>2011-09-21 11:45:02 (GMT)
commit160b82950ec53d3a0392df0fd18ac6856bfecbcf (patch)
tree1bdae6efe3fbcb7f25e0ce91884f83e1cdf68189 /src/scripttools/debugging/qscriptdebuggercodeview.cpp
parent8ba781b01e900148fec2e9d26485369b3295487f (diff)
parent085bd7cf2d76f9acd548120f859201b014970a72 (diff)
downloadQt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.zip
Qt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.tar.gz
Qt-160b82950ec53d3a0392df0fd18ac6856bfecbcf.tar.bz2
Merge branch '4.8' into earth-staging-master
Conflicts: dist/changes-4.8.0
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);