Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix pin/unpin diagrams when no labels
- Loading branch information
Showing
with
5 additions
and
1 deletion.
-
+5
−1
src/app/qgsmaptoollabel.cpp
|
@@ -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 ) |
|
|