IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7624


Ignore:
Timestamp:
Jun 21, 2006, 1:18:15 PM (20 years ago)
Author:
Paul Price
Message:

Target and source concepts were sharing the same metadata items in the concepts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPACopy.c

    r7618 r7624  
    196196                strcmp(name, "CELL.XPARITY") != 0 && strcmp(name, "CELL.YPARITY") != 0 &&
    197197                strcmp(name, "CELL.X0") != 0 && strcmp(name, "CELL.Y0") != 0) {
    198             psMetadataAddItem(target->concepts, conceptItem, PS_LIST_TAIL, PS_META_REPLACE);
     198            psMetadataItem *copy = psMetadataItemCopy(conceptItem); // Copy of the concept
     199            psMetadataAddItem(target->concepts, copy, PS_LIST_TAIL, PS_META_REPLACE);
     200            psFree(copy);               // Drop reference
    199201        }
    200202    }
Note: See TracChangeset for help on using the changeset viewer.