409 |
|
* Remember that front and back are reversed from WINDOW 6 orientations |
410 |
|
*/ |
411 |
|
if (!strcasecmp(sdata, "Transmission Front")) { |
412 |
– |
if (sd->tf != NULL) |
413 |
– |
SDfreeSpectralDF(sd->tf); |
414 |
– |
if ((sd->tf = SDnewSpectralDF(1)) == NULL) |
415 |
– |
return RC_MEMERR; |
416 |
– |
df = sd->tf; |
417 |
– |
} else if (!strcasecmp(sdata, "Transmission Back")) { |
412 |
|
if (sd->tb != NULL) |
413 |
|
SDfreeSpectralDF(sd->tb); |
414 |
|
if ((sd->tb = SDnewSpectralDF(1)) == NULL) |
415 |
|
return RC_MEMERR; |
416 |
|
df = sd->tb; |
417 |
+ |
} else if (!strcasecmp(sdata, "Transmission Back")) { |
418 |
+ |
if (sd->tf != NULL) |
419 |
+ |
SDfreeSpectralDF(sd->tf); |
420 |
+ |
if ((sd->tf = SDnewSpectralDF(1)) == NULL) |
421 |
+ |
return RC_MEMERR; |
422 |
+ |
df = sd->tf; |
423 |
|
} else if (!strcasecmp(sdata, "Reflection Front")) { |
424 |
< |
if (sd->rb != NULL) /* note back-front reversal */ |
424 |
> |
if (sd->rb != NULL) |
425 |
|
SDfreeSpectralDF(sd->rb); |
426 |
|
if ((sd->rb = SDnewSpectralDF(1)) == NULL) |
427 |
|
return RC_MEMERR; |
428 |
|
df = sd->rb; |
429 |
|
} else if (!strcasecmp(sdata, "Reflection Back")) { |
430 |
< |
if (sd->rf != NULL) /* note front-back reversal */ |
430 |
> |
if (sd->rf != NULL) |
431 |
|
SDfreeSpectralDF(sd->rf); |
432 |
|
if ((sd->rf = SDnewSpectralDF(1)) == NULL) |
433 |
|
return RC_MEMERR; |