[Kst] extragear/graphics/kst/src/datasources/wmap
Andrew Walker
arwalker at sumusltd.com
Mon Feb 12 23:35:00 CET 2007
SVN commit 633022 by arwalker:
provide meaningful default value for frameCount()
M +16 -3 wmap.cpp
--- trunk/extragear/graphics/kst/src/datasources/wmap/wmap.cpp #633021:633022
@@ -440,6 +440,8 @@
iStatus = 0;
+ updateNumFramesScalar( );
+
fits_close_file( ffits, &iStatus );
}
}
@@ -616,11 +618,22 @@
int rc = 1;
field* fld = 0L;
- fld = _fields.find( fieldName );
- if( fld != 0L )
+ if( fieldName.isEmpty() )
{
- rc = fld->numFrames;
+ fld = _fields.find( "POSITION_X" );
+ if( fld != 0L )
+ {
+ rc = fld->numFrames;
+ }
}
+ else
+ {
+ fld = _fields.find( fieldName );
+ if( fld != 0L )
+ {
+ rc = fld->numFrames;
+ }
+ }
return rc;
}
More information about the Kst
mailing list