Skip to content
Permalink
Browse files

Allow editing newly added diagram expression attributes (fix #14063)

(cherry-picked from 8389b7f)
  • Loading branch information
nyalldawson committed Mar 10, 2016
1 parent 7baedaf commit 602cfa193d5d625427c5d577a8f6650cb8b59624
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsdiagramproperties.cpp
@@ -826,7 +826,7 @@ void QgsDiagramProperties::showAddAttributeExpressionDialog()
newItem->setText( 0, expression );
newItem->setText( 2, expression );
newItem->setData( 0, Qt::UserRole, expression );
newItem->setFlags( newItem->flags() & ~Qt::ItemIsDropEnabled );
newItem->setFlags(( newItem->flags() | Qt::ItemIsEditable ) & ~Qt::ItemIsDropEnabled );

//set initial color for diagram category
int red = 1 + ( int )( 255.0 * qrand() / ( RAND_MAX + 1.0 ) );

0 comments on commit 602cfa1

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