| # | Line 539 | Line 539 | rmx_write_header(const RMATRIX *rm, int dtype, FILE *f | |
|---|---|---|
| 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) */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |