Skip to content
Browse files

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 387fcc5c68e9e691d64c3a5e10fbf718a8d7f551
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/vector/qgsdiagramproperties.cpp
@@ -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 );

case QgsWkbTypes::UnknownGeometry:

0 comments on commit 387fcc5

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