539 |
|
dtype = DTxyze; |
540 |
|
else if ((dtype == DTxyze) & (rm->dtype == DTrgbe)) |
541 |
|
dtype = DTrgbe; |
542 |
< |
if ((dtype == DTspec) & (rm->ncomp < 3)) |
542 |
> |
if ((dtype == DTspec) & (rm->ncomp <= 3)) |
543 |
|
return(0); |
544 |
|
|
545 |
|
if (dtype == DTascii) /* set file type (WINDOWS) */ |
560 |
|
} |
561 |
|
if (dtype >= DTspec) { /* # components & split? */ |
562 |
|
fputncomp(rm->ncomp, fp); |
563 |
< |
if (dtype == DTspec || (rm->ncomp > 3 && |
564 |
< |
memcmp(rm->wlpart, WLPART, sizeof(WLPART)))) |
563 |
> |
if (rm->ncomp > 3 && |
564 |
> |
memcmp(rm->wlpart, WLPART, sizeof(WLPART))) |
565 |
|
fputwlsplit(rm->wlpart, fp); |
566 |
|
} else if ((rm->ncomp != 3) & (rm->ncomp != 1)) |
567 |
|
return(0); /* wrong # components */ |