summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2017-04-22 15:30:22 +0300
committerJasem Mutlaq <[email protected]>2017-04-22 15:30:22 +0300
commit49588f8d95c2a255e2417a636be7c884b4810ba9 (patch)
tree9210a6110b33acae3eaeef079856f05bb05aa84b
parentf9b8097b472a76ce888f544690a33d49fb53a58d (diff)
Adjust decimals if the minimum is less than 0.001
-rw-r--r--kstars/ekos/capture/capture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index f0bb2c3..1dc2db2 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -714,6 +714,11 @@ void Capture::updateFrameProperties(int reset)
exposureIN->setMinimum(min);
exposureIN->setMaximum(max);
exposureIN->setSingleStep(step);
+
+ if (min < 0.001)
+ exposureIN->setDecimals(6);
+ else
+ exposureIN->setDecimals(3);
}
if (currentCCD->getMinMaxStep(frameProp, "WIDTH", &min, &max, &step))