mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fixed renaming of composer legend nodes for raster layers
This commit is contained in:
parent
675ba9abee
commit
369b60a495
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user