Skip to content
Permalink
Browse files

fix #2007

git-svn-id: http://svn.osgeo.org/qgis/trunk@11804 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Oct 14, 2009
1 parent e3520c7 commit 6b4e5263514e0e9096dcfc5e2012c06f1349ca01
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/core/qgssearchtreenode.cpp
@@ -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
@@ -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:

0 comments on commit 6b4e526

Please sign in to comment.
You can’t perform that action at this time.