Skip to content
Permalink
Browse files

fix pin/unpin diagrams when no labels

  • Loading branch information
pblottiere committed May 29, 2016
1 parent d6ec868 commit 8e980cfed1145d05bb5fc4113b5871a8ff69fb6b
Showing with 5 additions and 1 deletion.
  1. +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 )

0 comments on commit 8e980cf

Please sign in to comment.
You can’t perform that action at this time.