ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pvalue.c
(Generate patch)

Comparing ray/src/px/pvalue.c (file contents):
Revision 2.43 by greg, Wed Sep 11 18:56:12 2024 UTC vs.
Revision 2.45 by greg, Mon Sep 16 23:02:53 2024 UTC

# Line 361 | Line 361 | unkopt:
361                  printargs(i, argv, stdout);
362                  if ((expval < .99) | (expval > 1.01))
363                          fputexpos(expval, stdout);
364 <                if (NCSAMP == 1) {
364 >                if (!header & (putprim != ALL)) {
365 >                        NCSAMP = 1;             /* no header, so trust user */
366 >                } else if (NCSAMP == 1) {
367                          if (putprim == ALL)
368                                  putprim = BRIGHT;
369                  } else {
# Line 413 | Line 415 | unkopt:
415                  }
416                  if (header) {
417                          printargs(i, argv, stdout);
418 <                        printf("%s%c\n", NCOMPSTR, "13"[putprim==ALL]);
418 >                        if (dataonly)
419 >                                printf("%s%c\n", NCOMPSTR, "13"[putprim==ALL]);
420                          if (dataonly && !resolution & !uniq)
421                                  printf("NCOLS=%d\nNROWS=%d\n", scanlen(&picres),
422                                                  numscans(&picres));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines