[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Nov 10 17:41:23 CET 2004
CVS commit by staikos:
Only read once if samplesPerFrame is 1. - more efficient, causes fewer problems
for piolib
M +6 -2 kstrvector.cpp 1.64.2.4
--- kdeextragear-2/kst/kst/kstrvector.cpp #1.64.2.3:1.64.2.4
@@ -518,6 +518,10 @@ KstObject::UpdateType KstRVector::doUpda
// read the new data from file
//
+ if (_file->samplesPerFrame(_field) > 1) {
n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF - 1);
n_read += _file->readField(_v+(new_nf-1)*SPF, _field, new_f0 + new_nf-1, -1);
+ } else {
+ n_read = _file->readField(_v+NF*SPF, _field, new_f0 + NF, new_nf - NF);
+ }
}
More information about the Kst
mailing list