IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42437


Ignore:
Timestamp:
Mar 24, 2023, 9:47:03 AM (3 years ago)
Author:
eugene
Message:

attempt to load colormap files from the installed directory

Location:
branches/eam_branches/ipp-20230313/Ohana/src/kapa2/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/Ohana/src/kapa2/src/FindColormap.c.in

    r42427 r42437  
    3636  }
    3737
    38   /* check permission to exec file */
     38  /* check permission to read file */
    3939  status = stat (name, &filestat);
    4040  if (status == 0) { /* file exists, are permissions OK? */
     
    4343        (                            (filestat.st_mode & S_IROTH))) {
    4444      return (TRUE);
    45     } else {
    46       return (FALSE);
    47     }
     45    }
    4846  }
     47  return (FALSE);
    4948}
    5049
  • branches/eam_branches/ipp-20230313/Ohana/src/kapa2/src/SetColormap.c

    r42427 r42437  
    216216  KapaColorMapMode mode = KAPA_CM_STATIC;
    217217
     218  // we should already have handled the static colormaps by this point
    218219  char *basename = ParseColormapName (graphic->colormapName, &mode);
    219220  if (mode == KAPA_CM_STATIC) {
    220     fprintf (stderr, "unknown static colormap name %s\n", &graphic->colormapName);
     221    fprintf (stderr, "unknown static colormap name %s\n", graphic->colormapName);
    221222    free (basename);
    222223    return FALSE;
     
    338339  return (TRUE);
    339340}
    340 
Note: See TracChangeset for help on using the changeset viewer.