Skip to content

Commit

Permalink
Fix log message title on label geometry generators
Browse files Browse the repository at this point in the history
Fix #30379
  • Loading branch information
m-kuhn authored and nyalldawson committed Aug 8, 2019
1 parent a34c4aa commit cda85a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgspallabeling.cpp
Expand Up @@ -493,7 +493,7 @@ bool QgsPalLayerSettings::prepare( const QgsRenderContext &context, QSet<QString
mGeometryGeneratorExpression.prepare( &context.expressionContext() );
if ( mGeometryGeneratorExpression.hasParserError() )
{
QgsMessageLog::logMessage( QObject::tr( "Labeling" ), mGeometryGeneratorExpression.parserErrorString() );
QgsMessageLog::logMessage( mGeometryGeneratorExpression.parserErrorString(), QObject::tr( "Labeling" ) );
return false;
}

Expand Down Expand Up @@ -1342,7 +1342,7 @@ void QgsPalLayerSettings::registerFeature( const QgsFeature &f, QgsRenderContext
{
const QgsGeometry geometry = mGeometryGeneratorExpression.evaluate( &context.expressionContext() ).value<QgsGeometry>();
if ( mGeometryGeneratorExpression.hasEvalError() )
QgsMessageLog::logMessage( QObject::tr( "Labeling" ), mGeometryGeneratorExpression.evalErrorString() );
QgsMessageLog::logMessage( mGeometryGeneratorExpression.evalErrorString(), QObject::tr( "Labeling" ) );

if ( obstacleGeometry.isNull() )
{
Expand Down

0 comments on commit cda85a2

Please sign in to comment.