Skip to content
Permalink
Browse files

Don't restrict subdivision height to be < division tick height

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 6, 2020
1 parent 8b7f403 commit 870b5e55fd98253f463a001c5f9fd06d12e2c35f
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/gui/layout/qgslayoutscalebarwidget.cpp
@@ -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() );
@@ -347,7 +346,6 @@ void QgsLayoutScaleBarWidget::mHeightSpinBox_valueChanged( double d )
disconnectUpdateSignal();
mScalebar->setHeight( d );
mScalebar->update();
mSubdivisionsHeightSpinBox->setMaximum( d );
connectUpdateSignal();
mScalebar->endCommand();
}

0 comments on commit 870b5e5

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