[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars/data
Akarsh Simha
akarshsimha at gmail.com
Wed Jul 9 02:37:08 CEST 2008
SVN commit 829747 by asimha:
Fix error in reporting of limiting magnitude of shallow star data.
CCMAIL: kstars-devel at kde.org
M shallowstars.dat
M +3 -3 tools/mysql2bin.c
--- branches/kstars/summer/kdeedu/kstars/kstars/data/tools/mysql2bin.c #829746:829747
@@ -459,8 +459,8 @@
writeIndexEntry(namefile, FIRST_TRIXEL, ftell(namefile) + INDEX_ENTRY_SIZE, 0);
/* Leave space for / write a deep magnitude limit specification in the data files */
- maglim = (int)(8.00 * 100);
- fwrite(&maglim, 2, 1, nsf);
+ maglim = GLOBAL_MAG_LIMIT * 100;
+ fwrite(&maglim, 2, 1, nsf); // This is also a bogus entry, because it will be overwritten later
maglim = (int)(-5.0 * 100);
fwrite(&maglim, 2, 1, usf); // Bogus entry
@@ -638,7 +638,7 @@
rewind(usf);
rewind(nsf);
fwrite(&maglim, 2, 1, usf);
- maglim = 8.0;
+ maglim = GLOBAL_MAG_LIMIT * 100;
fwrite(&maglim, 2, 1, nsf);
fwrite(&htm_level, 1, 1, usf);
fwrite(&htm_level, 1, 1, nsf);
More information about the Kstars-devel
mailing list