Fixed renaming of composer legend nodes for raster layers

This commit is contained in:
Martin Dobias 2014-10-02 13:13:40 +02:00
parent 675ba9abee
commit 369b60a495

View File

@ -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();
}