Skip to content

Commit

Permalink
Don't restrict subdivision height to be < division tick height
Browse files Browse the repository at this point in the history
Because **maybe** someone will want subdivisions bigger than divisions,
and there's no need to artificially restrict their creativity!
  • Loading branch information
nyalldawson committed May 7, 2020
1 parent 8b7f403 commit 870b5e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/layout/qgslayoutscalebarwidget.cpp
Expand Up @@ -228,7 +228,6 @@ void QgsLayoutScaleBarWidget::setGuiElements()
mHeightSpinBox->setValue( mScalebar->height() );
mNumberOfSubdivisionsSpinBox->setValue( mScalebar->numberOfSubdivisions() );
mSubdivisionsHeightSpinBox->setValue( mScalebar->subdivisionsHeight() );
mSubdivisionsHeightSpinBox->setMaximum( mScalebar->height() );
mMapUnitsPerBarUnitSpinBox->setValue( mScalebar->mapUnitsPerScaleBarUnit() );
mLabelBarSpaceSpinBox->setValue( mScalebar->labelBarSpace() );
mBoxSizeSpinBox->setValue( mScalebar->boxContentSpace() );
Expand Down Expand Up @@ -347,7 +346,6 @@ void QgsLayoutScaleBarWidget::mHeightSpinBox_valueChanged( double d )
disconnectUpdateSignal();
mScalebar->setHeight( d );
mScalebar->update();
mSubdivisionsHeightSpinBox->setMaximum( d );
connectUpdateSignal();
mScalebar->endCommand();
}
Expand Down

0 comments on commit 870b5e5

Please sign in to comment.