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
This commit is contained in:
jef 2009-10-14 12:43:57 +00:00
parent 6b4e526351
commit 6a00570abc

View File

@ -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: