Skip to content

Commit

Permalink
Fixed renaming of composer legend nodes for raster layers
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 2, 2014
1 parent 675ba9a commit 369b60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -454,7 +454,7 @@ QVariant QgsRasterSymbolLegendNode::data( int role ) const
return QIcon( pix );
}
else if ( role == Qt::DisplayRole || role == Qt::EditRole )
return mLabel;
return mUserLabel.isEmpty() ? mLabel : mUserLabel;
else
return QVariant();
}
Expand Down

0 comments on commit 369b60a

Please sign in to comment.