[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/scribo/plugins/pimo
From: Tom Albers <toma () kde ! org>
Date: 2009-06-20 19:38:08
Message-ID: 1245526688.102713.8351.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 984466 by toma:
Not found equals -1 not 0, 0 is the first character. So if the first char is a \W \
regx, then the whole text would be taken...
M +1 -1 pimotextmatchplugin.cpp
--- trunk/playground/base/nepomuk-kde/scribo/plugins/pimo/pimotextmatchplugin.cpp \
#984465:984466 @@ -73,7 +73,7 @@
{
// extract next word
int pos = m_text.indexOf( QRegExp( "\\W" ), m_pos );
- if ( pos > 0 ) {
+ if ( pos != -1 ) {
QString word = m_text.mid( m_pos, pos-m_pos ).simplified();
queryWord( word );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic