Changeset 11435
- Timestamp:
- Jan 30, 2007, 9:54:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r11255 r11435 37 37 } 38 38 39 #if 039 #if 1 40 40 // Find the blank (image-less) PHU, given a cell. 41 41 static pmHDU *findBlankPHU(const pmCell *cell // The cell for which to find the PHU … … 279 279 binItem->data.S32 *= yBin; 280 280 281 #if 0282 281 // Copy any headers 283 282 pmHDU *targetHDU = pmHDUFromCell(target); // The target HDU 284 if (targetHDU && !targetHDU->header) { 283 if (targetHDU) { 284 if (!targetHDU->header) { 285 targetHDU->header = psMetadataAlloc(); 286 } 285 287 pmHDU *sourceHDU = pmHDUFromCell(source); // The source HDU 286 288 if (sourceHDU->header) { … … 291 293 // Copy the PHU over as well, if required 292 294 pmHDU *targetPHU = findBlankPHU(target); // The target PHU 293 if (targetPHU && targetPHU != targetHDU && !targetPHU->header) { 295 if (targetPHU && targetPHU != targetHDU) { 296 if (!targetPHU->header) { 297 targetPHU->header = psMetadataAlloc(); 298 } 294 299 // pmHDU *sourcePHU = pmHDUGetHighest(source->parent->parent, source->parent, source); // A source HDU 295 300 pmHDU *sourcePHU = findBlankPHU(source); // The target PHU … … 298 303 } 299 304 } 300 #endif301 305 302 306 target->data_exists = true;
Note:
See TracChangeset
for help on using the changeset viewer.
