"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tclfitsy/tclfitsy.C" between
ds9.8.2.tar.gz and ds9.8.2.1.tar.gz

About: SAOImage DS9 is an astronomical imaging and data visualization application that supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps.

tclfitsy.C  (ds9.8.2):tclfitsy.C  (ds9.8.2.1)
skipping to change at line 510 skipping to change at line 510
switch (col->type()) { switch (col->type()) {
case 'A': case 'A':
case 'X': case 'X':
case 'L': case 'L':
break; break;
default: default:
for (int kk=1; kk<col->repeat(); kk++) { for (int kk=1; kk<col->repeat(); kk++) {
ccnt++; ccnt++;
ostringstream index; ostringstream index;
index << '1' << ',' << ccnt << ends; index << '1' << ',' << ccnt << ends;
const char* unit = col->tunit();
ostringstream value;
if (unit && *unit)
value << trim(col->tunit()) << kk+1 << ends;
else
value << ' ' << endl;
Tcl_SetVar2(interp_, argv[2], index.str().c_str(), Tcl_SetVar2(interp_, argv[2], index.str().c_str(),
value.str().c_str(), TCL_GLOBAL_ONLY); value.str().c_str(), TCL_GLOBAL_ONLY);
} }
break; break;
} }
} }
} }
} }
skipping to change at line 558 skipping to change at line 552
if (col->repeat()>1) { if (col->repeat()>1) {
switch (col->type()) { switch (col->type()) {
case 'A': case 'A':
case 'X': case 'X':
case 'L': case 'L':
break; break;
default: default:
for (int kk=1; kk<col->repeat(); kk++) { for (int kk=1; kk<col->repeat(); kk++) {
ccnt++; ccnt++;
ostringstream index; ostringstream index;
index << ii+1 << ',' << ccnt << ends; index << ii+1+doUnits << ',' << ccnt << ends;
ostringstream value; ostringstream value;
value << col->str(ptr,kk) << ends; value << col->str(ptr,kk) << ends;
Tcl_SetVar2(interp_, argv[2], index.str().c_str(), Tcl_SetVar2(interp_, argv[2], index.str().c_str(),
value.str().c_str(), TCL_GLOBAL_ONLY); value.str().c_str(), TCL_GLOBAL_ONLY);
} }
break; break;
} }
} }
} }
} }
 End of changes. 2 change blocks. 
7 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)