Skip to content
Snippets Groups Projects

DistributionEditor: set lower bound for mean spinbox

Merged Ludwig Jaeck requested to merge 473-spinbox into main
All threads resolved!
@@ -31,6 +31,7 @@ void initDistribution(DistributionItem* newDistribution,
if (auto* nd = dynamic_cast<SymmetricResolutionItem*>(newDistribution)) {
nd->setMean(meanVal);
nd->setMeanDecimals(4);
nd->mean().setLimits(RealLimits::lowerLimited(std::numeric_limits<double>::min()));
}
newDistribution->initDistribution(meanVal);
Loading