#743 closed defect (fixed)
vector lengths unassigned in psFitsReadImageCube
| Reported by: | eugene | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | fits | Version: | 0.11.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I've made the fix in CVS HEAD
* src/fits/psFitsImage.c 17 Apr 2006 22:00:03 -0000 1.3
--- src/fits/psFitsImage.c 21 Apr 2006 20:39:08 -0000
*
* 543,548
--- 543,549 ----
if (nAxis == 2) {
psArray *images = psArrayAlloc(1); Single image plane
+ images->n = 1;
images->data[0] = psFitsReadImage(fits, region, 0);
return images;
}
*
* 556,561
--- 557,563 ----
}
psArray *images = psArrayAlloc(nAxes[2]); Array of image planes
+ images->n = nAxes[2];
for (int i = 0; i < nAxes[2]; i++) {
images->data[i] = psFitsReadImage(fits, region, i);
}
Note:
See TracTickets
for help on using tickets.

Fixed by Gene.