Skip to content
Permalink
Browse files

fix old labeling (fixes #8030)

  • Loading branch information
jef-n committed Jul 10, 2013
1 parent 8284300 commit 42d57d6f8f5bd9db295e87ed5fc67cede59ba36d
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/core/qgslabel.cpp
@@ -65,12 +65,8 @@ QgsLabel::~QgsLabel()

QString QgsLabel::fieldValue( int attr, QgsFeature &feature )
{
if ( mLabelFieldIdx[attr] == -1 )
{
return QString();
}

return feature.attribute( attr ).toString();
int idx = mLabelFieldIdx[attr];
return idx < 0 ? QString() : feature.attribute( idx ).toString();
}

void QgsLabel::renderLabel( QgsRenderContext &renderContext,

0 comments on commit 42d57d6

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