We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c50e1bf commit 33fe8faCopy full SHA for 33fe8fa
src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
@@ -92,7 +92,7 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
92
double stepval = step.isValid() ? step.toDouble() : 1.0;
93
double minval = min.isValid() ? min.toDouble() : std::numeric_limits<double>::lowest();
94
double maxval = max.isValid() ? max.toDouble() : std::numeric_limits<double>::max();
95
- int precisionval = precision.isValid() ? precision.toInt() : 4;
+ int precisionval = precision.isValid() ? precision.toInt() : layer()->fields().at( fieldIdx() ).precision();
96
97
mDoubleSpinBox->setDecimals( precisionval );
98
0 commit comments