Skip to content

Commit

Permalink
fix pin/unpin diagrams when no labels
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 29, 2016
1 parent d6ec868 commit 8e980cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgsmaptoollabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 8e980cf

Please sign in to comment.