[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Feb 2 02:13:27 CET 2005
CVS commit by staikos:
fix the data source for the new skip behaviour
M +2 -1 kstrvector.cpp 1.77
M +1 -1 datasources/planck/planck.cpp 1.34
--- kdeextragear-2/kst/kst/kstrvector.cpp #1.76:1.77
@@ -504,4 +504,5 @@ KstObject::UpdateType KstRVector::doUpda
}
}
+ // for debugging: _dontUseSkipAccel = true;
if (!_dontUseSkipAccel) {
int rc;
@@ -513,5 +514,5 @@ KstObject::UpdateType KstRVector::doUpda
rc = _file->readField(_v + _numSamples, _field, new_f0, (new_nf - NF)/Skip, Skip, &lastRead);
if (rc != -9999) {
- //kdDebug() << "USED SKIP FOR READ - " << _field << " - rc=" << rc << " for Skip=" << Skip << " s=" << new_f0 << " n=" << (DoAve ? (new_nf - NF)/Skip : -1) << endl;
+ //kdDebug() << "USED SKIP FOR READ - " << _field << " - rc=" << rc << " for Skip=" << Skip << " s=" << new_f0 << " n=" << (new_nf - NF)/Skip << endl;
if (rc >= 0) {
n_read = rc;
--- kdeextragear-2/kst/kst/datasources/planck/planck.cpp #1.33:1.34
@@ -157,5 +157,5 @@ int PlanckSource::readField(double *v, c
int i = 0;
int rctmp = rc;
- while (rctmp > skip) {
+ while (rctmp >= skip) {
rctmp -= skip;
v[i] = tmp[i * skip];
More information about the Kst
mailing list