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

Peter Kümmel syntheticpp at gmx.net
Sat Feb 5 14:39:19 CET 2011


SVN commit 1218987 by kuemmel:

improve readability a bit: go from row start to the column 

 M  +1 -1      asciisource.cpp  


--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1218986:1218987
@@ -514,7 +514,7 @@
     // the column in row i by adding _rowIndex[i] we have to start at:
     const char* col_start = &buffer[0] - _rowIndex[0] + _config._columnWidth * (col - 1);
     for (int i = 0; i < n; ++i) {
-      v[i] = lexc.toDouble(col_start + _rowIndex[i]);
+      v[i] = lexc.toDouble(_rowIndex[i] + col_start);
     }
     return n;
   } else if (_config._columnType == AsciiSourceConfig::Custom) {


More information about the Kst mailing list