Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
will you ever learn to run prepare-commit.sh before commiting?
git-svn-id: http://svn.osgeo.org/qgis/trunk@11805 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 14, 2009
1 parent 6b4e526 commit 6a00570
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/qgssearchtreenode.cpp
Expand Up @@ -252,7 +252,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
case opLike:
{
if ( !getValue( value1, mLeft, fields, attributes ) ||
!getValue( value2, mRight, fields, attributes ) )
!getValue( value2, mRight, fields, attributes ) )
return false;

// value1 is string to be matched
Expand All @@ -274,11 +274,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
str.replace( "_", "." );
}

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

default:
Expand Down

0 comments on commit 6a00570

Please sign in to comment.