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

Comparing ray/src/util/pictool.c (file contents):
Revision 2.2 by greg, Tue Aug 18 15:02:53 2015 UTC vs.
Revision 2.3 by greg, Thu Jul 14 17:32:12 2016 UTC

# Line 87 | Line 87 | void   pict_free(pict* p)
87   }
88   static int      exp_headline(char* s,void* exparg) {
89          double* exposure;
90 +        if(strstr(s, EXPOSSTR) != NULL )  {
91 +                fprintf(stderr,"EXP AND tab\n");
92 +                }
93  
94          exposure = (double*) exparg;
95          if (isexpos(s)) {
# Line 213 | Line 216 | gethinfo(                              /* get view from header */
216          void  *v
217   )
218   {
219 +        if(strstr(s, EXPOSSTR) != NULL && strstr(s, "\t") != NULL)  {
220 +                fprintf(stderr,"error: header contains invalid exposure !!!!\n");
221 +                fprintf(stderr,"check exposure and remove tab !\n");
222 +                fprintf(stderr,"stopping !!!!\n");
223 +                exit(1);
224 +                }
225          if (isview(s) && sscanview(((struct hinfo*)v)->hv, s) > 0) {
226                  ((struct hinfo*)v)->ok++;
227          } else if (isexpos(s)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines