IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41675


Ignore:
Timestamp:
Jul 1, 2021, 1:57:07 PM (5 years ago)
Author:
eugene
Message:

NAN values for X,Y mean retain the existing value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa2/src/Center.c

    r25757 r41675  
    1717
    1818  // enforce integer center here?
    19   image[0].picture.Xc = X;
    20   image[0].picture.Yc = Y;
     19  // NAN value means retain existing center
     20  if (isfinite(X)) image[0].picture.Xc = X;
     21  if (isfinite(Y)) image[0].picture.Yc = Y;
    2122  if ((zoom != 0) && (zoom != -1)) {
    2223    image[0].picture.expand = zoom;
Note: See TracChangeset for help on using the changeset viewer.