Skip to content

Commit 8e980cf

Browse files
committedMay 29, 2016
fix pin/unpin diagrams when no labels
1 parent d6ec868 commit 8e980cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/app/qgsmaptoollabel.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,11 @@ QgsMapToolLabel::LabelDetails::LabelDetails( const QgsLabelPosition& p )
689689
if ( layer && layer->labeling() )
690690
{
691691
settings = layer->labeling()->settings( layer, pos.providerID );
692-
valid = settings.enabled;
692+
693+
if ( p.isDiagram )
694+
valid = layer->diagramsEnabled();
695+
else
696+
valid = settings.enabled;
693697
}
694698

695699
if ( !valid )

0 commit comments

Comments
 (0)
Please sign in to comment.