Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #2007
git-svn-id: http://svn.osgeo.org/qgis/trunk@11804 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 14, 2009
1 parent e3520c7 commit 6b4e526
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/qgssearchtreenode.cpp
Expand Up @@ -251,7 +251,8 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
case opRegexp:
case opLike:
{
if ( !getValue( value1, mLeft, fields, attributes ) || !getValue( value2, mRight, fields, attributes ) )
if ( !getValue( value1, mLeft, fields, attributes ) ||
!getValue( value2, mRight, fields, attributes ) )
return false;

// value1 is string to be matched
Expand All @@ -274,10 +275,10 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
}

QRegExp re( str );
res = re.indexIn( value1.string() );
res = re.exactMatch( value1.string() );
QgsDebugMsgLevel( "REGEXP: " + str + " ~ " + value2.string(), 2 );
QgsDebugMsgLevel( " res: " + res, 2 );
return ( res != -1 );
return res;
}

default:
Expand Down

0 comments on commit 6b4e526

Please sign in to comment.