mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix full annotation bug described in NCF-275
This commit is contained in:
parent
5707513756
commit
8e18ede2fe
@ -472,6 +472,7 @@ print_rows(
|
||||
} else { /* bottom out of recursion */
|
||||
char *valp = vals;
|
||||
bool_t lastrow;
|
||||
int j;
|
||||
NC_CHECK(nc_get_vara(ncid, varid, cor, edg, (void *)valp));
|
||||
for(i=0; i < d0 - 1; i++) {
|
||||
print_any_val(sb, vp, (void *)valp);
|
||||
@ -487,21 +488,21 @@ print_rows(
|
||||
print_any_val(sb, vp, (void *)valp);
|
||||
/* determine if this is the last row */
|
||||
lastrow = true;
|
||||
for(i = 0; i < rank - 1; i++) {
|
||||
if (cor[i] != vdims[i] - 1) {
|
||||
for(j = 0; j < rank - 1; j++) {
|
||||
if (cor[j] != vdims[j] - 1) {
|
||||
lastrow = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (formatting_specs.full_data_cmnts) {
|
||||
for (i = 0; i < marks_pending; i++) {
|
||||
for (j = 0; j < marks_pending; j++) {
|
||||
sbuf_cat(sb, "}");
|
||||
}
|
||||
printf("%s", sbuf_str(sb));
|
||||
lastdelim (0, lastrow);
|
||||
annotate (vp, cor, i);
|
||||
} else {
|
||||
for (i = 0; i < marks_pending; i++) {
|
||||
for (j = 0; j < marks_pending; j++) {
|
||||
sbuf_cat(sb, "}");
|
||||
}
|
||||
lput(sbuf_str(sb));
|
||||
|
Loading…
Reference in New Issue
Block a user