Skip to content
Permalink
Browse files

Remove debug noise for expression labels

  • Loading branch information
NathanW2 committed Oct 29, 2011
1 parent 9b2bf0a commit f5bf2b4110b5766cc127ad25fbad00c9dccd2b25
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/qgspallabeling.cpp
@@ -471,14 +471,13 @@ void QgsPalLayerSettings::registerFeature( QgsVectorLayer* layer, QgsFeature& f
QgsExpression* exp = getLabelExpression();
if ( exp->hasParserError() )
{
QgsDebugMsg( "PASER HAS ERROR:" + exp->parserErrorString() );
QgsDebugMsg( "Expression parser error:" + exp->parserErrorString() );
return;
}
QVariant result = exp->evaluate( &f, layer->dataProvider()->fields() );
QgsDebugMsg( "VALUE = " + result.toString() );
if ( exp->hasEvalError() )
{
QgsDebugMsg( "Expression Label Error = " + exp->evalErrorString() );
QgsDebugMsg( "Expression parser eval error:" + exp->evalErrorString() );
return;
}
labelText = result.toString();

0 comments on commit f5bf2b4

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