mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
fix pin/unpin diagrams when no labels
This commit is contained in:
parent
d6ec868af1
commit
8e980cfed1
@ -689,7 +689,11 @@ QgsMapToolLabel::LabelDetails::LabelDetails( const QgsLabelPosition& p )
|
||||
if ( layer && layer->labeling() )
|
||||
{
|
||||
settings = layer->labeling()->settings( layer, pos.providerID );
|
||||
valid = settings.enabled;
|
||||
|
||||
if ( p.isDiagram )
|
||||
valid = layer->diagramsEnabled();
|
||||
else
|
||||
valid = settings.enabled;
|
||||
}
|
||||
|
||||
if ( !valid )
|
||||
|
Loading…
x
Reference in New Issue
Block a user