[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars/gsoc2015-ekos] kstars/ekos: Only set HFR value from file if it is larger than zero
From: Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date: 2015-08-31 22:02:21
Message-ID: E1ZWX9h-0006og-BT () scm ! kde ! org
[Download RAW message or body]
Git commit a19ba3d5b41c52f0988fa484a1c587578b631f33 by Jasem Mutlaq.
Committed on 31/08/2015 at 21:58.
Pushed by mutlaqja into branch 'gsoc2015-ekos'.
Only set HFR value from file if it is larger than zero
M +3 -1 kstars/ekos/capture.cpp
http://commits.kde.org/kstars/a19ba3d5b41c52f0988fa484a1c587578b631f33
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index 412f26d..8d30437 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -1990,7 +1990,9 @@ bool Capture::loadSequenceQueue(const QUrl &fileURL)
if (!strcmp(findXMLAttValu(ep, "enabled"), "true"))
{
autofocusCheck->setChecked(true);
- HFRPixels->setValue(atof(pcdataXMLEle(ep)));
+ float HFRValue =3D atof(pcdataXMLEle(ep));
+ if (HFRValue > 0)
+ HFRPixels->setValue(HFRValue);
}
else
autofocusCheck->setChecked(false);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic