[Kst] kdeextragear-2/kst/kst/datasources/planck
George Staikos
staikos at kde.org
Wed Feb 9 19:15:18 CET 2005
CVS commit by staikos:
better to use findGroup()
M +5 -3 planckobj.cpp 1.28
--- kdeextragear-2/kst/kst/datasources/planck/planckobj.cpp #1.27:1.28
@@ -62,5 +62,6 @@ Planck::TimeType Object::typeOfTime() {
PIOObject *obj = 0L;
char range[128];
- Planck::ObjectGroup *g = _groupInfo[_group];
+ Planck::ObjectGroup *g = findGroup(_group);
+ assert(g);
snprintf(range, 127, "Begin=%ld\nEnd=%ld", *g->firstIndex, *g->lastIndex);
@@ -87,5 +88,6 @@ double Object::fetchTimePoint(long indx)
snprintf(range, 127, "Begin=%ld\nEnd=%ld", (long)idx, (long)idx);
double buf[1];
- Planck::ObjectGroup *g = _groupInfo[_group];
+ Planck::ObjectGroup *g = findGroup(_group);
+ assert(g);
static PIOFLAG Mask[1];
@@ -330,5 +332,5 @@ int Object::sampleForTime(int search, bo
}
- Planck::ObjectGroup *g = _groupInfo[_group];
+ Planck::ObjectGroup *g = findGroup(_group);
if (!g || _tt == Unknown) {
if (ok) {
More information about the Kst
mailing list