[Kstars-devel] kdeedu/kstars/kstars

Jasem Mutlaq mutlaqja at ikarustech.com
Sun May 1 23:34:49 CEST 2005


CVS commit by mutlaqja: 

Applying Gaetano's patch for Capture Image Sequence window. Thanks Gaetano!

CCMAIL: kstars-devel at kde.org


  M +14 -8     imagesequence.cpp   1.5


--- kdeedu/kstars/kstars/imagesequence.cpp  #1.4:1.5
@@ -609,14 +609,20 @@ void imagesequence::updateFilterCombo(in
 
   if (filterList.empty())
-   for (int i=0; i <= filterMax; i++)
+   for (unsigned int i=0; i <= filterMax; i++)
       filterList << QString("%1").arg(i);
 
-
- 
-  // Populate combo
+  // Fill filter combo
+  if (filterList.count() <= filterMax)
+  {
    filterPosCombo->insertStringList(filterList);
-
-   for (int i = filterList.count() ; i <= filterMax ; i++)
+      for (unsigned int i = filterList.count() ; i <= filterMax ; i++)
       filterPosCombo->insertItem(QString("%1").arg(i));
+  } else
+  {
+      // filterMax < filterList.count()
+      for (unsigned int i = 0 ; i <= filterMax ; i++)
+        filterPosCombo->insertItem(QString("%1").arg(filterList[i]));
+   
+  }
 
    filterPosCombo->setCurrentItem(((int) filterElem->value));




More information about the Kstars-devel mailing list