summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercodeview.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-09-14 04:45:58 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-09-14 04:45:58 (GMT)
commitfe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06 (patch)
tree29d20b77fb3760cd47e980acc74432624e841be4 /src/scripttools/debugging/qscriptdebuggercodeview.cpp
parentdf2e8fbe96fab8e034ab897b8a767b4a473b34ad (diff)
parent704dd92581783d91ccd234d58896d7078eed14a5 (diff)
downloadQt-fe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06.zip
Qt-fe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06.tar.gz
Qt-fe9c071ac33673fa4e8c94ef3dfc27dbf1f36d06.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-releng-team: (225 commits) Disable autotest broken by the change to QCache in 7ab0bed find qt.conf more reliably Generate glyphs in un-transformed coordinate system. Use QT_MAX_CACHED_GLYPH_SIZE in QFontEngineFT Reset trailingSpaces in relayout Prevent QPixmapCache potentially growing indefinitely. Allocate 16-byte aligned memory independent of platform for raster pool. qmake vcxproj generator: fix XML conversion for build events Fix trailing spaces problem by not adding it to QScriptLine.length Fix RTL layout for fonts when non-printable character has an advance Fix regression in tst_qrawfont Fix double click and drag not extending word selection. Split CFLAGS from pkg-config properly Ensure that the proxystyle is used over the style's own functions runonphone: Add a missing space between a message and the file name Perl check for windows configure. QSettings: don't assume XDG_CONFIG_HOME is latin1-encoded QSettings: use the common appdata dir when bootstrapping qmake on win Merge fixes for QDir::operator== Replace explicit surrogate handlers by inline methods of QChar class ...
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);