Skip to content
Permalink
Browse files

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
jef committed Oct 14, 2009
1 parent 6b4e526 commit 6a00570abcbbb7a5cd9bb8191b9100f5b7834b14
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/core/qgssearchtreenode.cpp
@@ -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
@@ -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:

0 comments on commit 6a00570

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