[Kst] branches/work/kst/portto4/kst/src/datasources/ascii

Barth Netterfield netterfield at astro.utoronto.ca
Thu Oct 21 18:35:33 CEST 2010


SVN commit 1188187 by netterfield:

BUG:

reload wasn't working for ascii files.  This fixes it.



 M  +2 -2      asciisource.cpp  


--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1188186:1188187
@@ -255,7 +255,7 @@
 
   int bufread;
   bool new_data = false;
-  bool first_read = (_numFrames == 0);
+  //bool first_read = (_numFrames == 0);
 
   QByteArray delbytes = _config._delimiters.value().toLatin1();
   const char *del = delbytes.constData();
@@ -302,7 +302,7 @@
         has_dat = true;
       }
     }
-  } while ((bufread == MAXBUFREADLEN) && (!first_read));
+  } while ((bufread == MAXBUFREADLEN)); // && (!first_read));
 
   return (forceUpdate ? Updated : (new_data ? Updated : NoChange));
 }


More information about the Kst mailing list