From: <hep...@us...> - 2011-03-05 19:23:56
|
Revision: 1281 http://qterm.svn.sourceforge.net/qterm/?rev=1281&view=rev Author: hephooey Date: 2011-03-05 19:23:50 +0000 (Sat, 05 Mar 2011) Log Message: ----------- Safe guard for isPartial Modified Paths: -------------- trunk/qterm-qt4/src/termstring.cpp Modified: trunk/qterm-qt4/src/termstring.cpp =================================================================== --- trunk/qterm-qt4/src/termstring.cpp 2011-03-05 19:10:11 UTC (rev 1280) +++ trunk/qterm-qt4/src/termstring.cpp 2011-03-05 19:23:50 UTC (rev 1281) @@ -178,7 +178,10 @@ bool TermString::isPartial(int index) { - //qDebug() << "length " << m_index.size() << ", index: " << index; + if (index < 0 or index >= m_index.size()) { + qDebug() << "length " << m_index.size() << ", index: " << index; + return false; + } if (m_index.at(index) == -1) { return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |