Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable distance settings when opening polygon's diagram dialog
The default "over centroid" setting is not compatible with distances
  • Loading branch information
DelazJ authored and nyalldawson committed Jul 13, 2020
1 parent 76dad2f commit 387fcc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/vector/qgsdiagramproperties.cpp
Expand Up @@ -298,6 +298,9 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer *layer, QWidget *pare

case QgsWkbTypes::PolygonGeometry:
radOverCentroid->setChecked( true );
mDiagramDistanceLabel->setEnabled( false );
mDiagramDistanceSpinBox->setEnabled( false );
mDistanceDDBtn->setEnabled( false );
break;

case QgsWkbTypes::UnknownGeometry:
Expand Down

0 comments on commit 387fcc5

Please sign in to comment.