IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11149


Ignore:
Timestamp:
Jan 18, 2007, 5:08:27 PM (19 years ago)
Author:
Paul Price
Message:

Fixing order of cameras so that mosaicked versions are in the same order as the original versions, just at the top of the list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r10965 r11149  
    374374
    375375    // Now put the new cameras at the top of the list of cameras, so they get recognised first
    376     camerasIter = psMetadataIteratorAlloc(new, PS_LIST_TAIL, NULL); // Iterator
    377     while ((camerasItem = psMetadataGetAndDecrement(camerasIter))) {
     376    // Note: going from the top, and putting everything to the top as we get there, so that the last one on
     377    // goes to the top.  This preserves the original order of the cameras, putting the mosaicked versions
     378    // before the originals.
     379    camerasIter = psMetadataIteratorAlloc(new, PS_LIST_HEAD, NULL); // Iterator
     380    while ((camerasItem = psMetadataGetAndIncrement(camerasIter))) {
    378381        psMetadataAddItem(cameras, camerasItem, PS_LIST_HEAD, 0);
    379382    }
Note: See TracChangeset for help on using the changeset viewer.