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 |
> |
dtype = DTspec; |
544 |
> |
else if ((dtype == DTspec) & (rm->ncomp <= 3)) |
545 |
|
return(0); |
546 |
|
|
547 |
|
if (dtype == DTascii) /* set file type (WINDOWS) */ |
562 |
|
} |
563 |
|
if (dtype >= DTspec) { /* # components & split? */ |
564 |
|
fputncomp(rm->ncomp, fp); |
565 |
< |
if (dtype == DTspec || (rm->ncomp > 3 && |
566 |
< |
memcmp(rm->wlpart, WLPART, sizeof(WLPART)))) |
565 |
> |
if (rm->ncomp > 3 && |
566 |
> |
memcmp(rm->wlpart, WLPART, sizeof(WLPART))) |
567 |
|
fputwlsplit(rm->wlpart, fp); |
568 |
|
} else if ((rm->ncomp != 3) & (rm->ncomp != 1)) |
569 |
|
return(0); /* wrong # components */ |