- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules/src/camera/pmFPACopy.c
r23351 r24244 399 399 if (targetHDU) { 400 400 pmHDU *sourceHDU = pmHDUFromCell(source); // The source HDU 401 if (!sourceHDU) { 402 psWarning("Unable to copy header: no source header."); 403 } else if (sourceHDU->header) { 401 if (sourceHDU && sourceHDU->header) { 404 402 targetHDU->header = psMetadataCopy(targetHDU->header, sourceHDU->header); 405 403 } … … 481 479 if (targetFPA && sourceFPA) { 482 480 if (targetFPA->toSky) { 483 psAssert (targetFPA->toSky == sourceFPA->toSky, "chips within FPA have inconsistent astrometry references"); 484 } else { 485 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 486 } 481 psFree(targetFPA->toSky); 482 } 483 targetFPA->toSky = psMemIncrRefCounter (sourceFPA->toSky); 487 484 if (targetFPA->toTPA) { 488 psAssert (targetFPA->toTPA == sourceFPA->toTPA, "chips within FPA have inconsistent astrometry references"); 489 } else { 490 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 491 } 485 psFree(targetFPA->toTPA); 486 } 487 targetFPA->toTPA = psMemIncrRefCounter (sourceFPA->toTPA); 492 488 if (targetFPA->fromTPA) { 493 psAssert (targetFPA->fromTPA == sourceFPA->fromTPA, "chips within FPA have inconsistent astrometry references"); 494 } else { 495 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 496 } 489 psFree(targetFPA->fromTPA); 490 } 491 targetFPA->fromTPA = psMemIncrRefCounter (sourceFPA->fromTPA); 497 492 } 498 493
Note:
See TracChangeset
for help on using the changeset viewer.
