diff data/fileio/CSVFormat.cpp @ 840:e50a8fee6752

Fix error in break condition for csv file analysis -- was making csv file type guessing very slow for large files
author Chris Cannam
date Mon, 04 Nov 2013 15:47:46 +0000
parents 611a4fa14dde
children e802e550a1f2
line wrap: on
line diff
--- a/data/fileio/CSVFormat.cpp	Wed Oct 09 14:51:46 2013 +0100
+++ b/data/fileio/CSVFormat.cpp	Mon Nov 04 15:47:46 2013 +0000
@@ -73,8 +73,10 @@
 
             guessQualities(line, lineno);
 
-            if (++lineno == 50) break;
+            ++lineno;
         }
+
+        if (lineno >= 50) break;
     }
 
     guessPurposes();