[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jan 5 05:53:47 CET 2005


CVS commit by staikos: 

use minimum length, not maximum


  M +6 -2      kstdatacollection-gui.cpp   1.14


--- kdeextragear-2/kst/kst/kstdatacollection-gui.cpp  #1.13:1.14
@@ -116,9 +116,13 @@ int KST::vectorsToFile(const KstVectorLi
   KstApp *app = KstApp::inst();
   int vcnt = vl.count();
+  int maxlen = -1;
 
-  int maxlen = 0;
   for (KstVectorList::ConstIterator v = vl.begin(); v != vl.end(); ++v) {
     (*v)->readLock();
-    maxlen = KMAX(maxlen, (*v)->length());
+    if (maxlen == -1) {
+      maxlen = (*v)->length();
+    } else {
+      maxlen = KMIN(maxlen, (*v)->length());
+    }
   }
 




More information about the Kst mailing list