From kde-commits Mon Aug 31 22:02:21 2015 From: Jasem Mutlaq Date: Mon, 31 Aug 2015 22:02:21 +0000 To: kde-commits Subject: [kstars/gsoc2015-ekos] kstars/ekos: Only set HFR value from file if it is larger than zero Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=144105855105002 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);