From 4b28cdb6bad96950397150bc98eeb4cef3d431db Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 3 Jan 2014 12:20:31 +0000 Subject: [PATCH] Prevent FILT being rendered as black if the only wavelengths present are invalid --- src/simulation/elements/FILT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/FILT.cpp b/src/simulation/elements/FILT.cpp index 36ea41456..7e8ae996f 100644 --- a/src/simulation/elements/FILT.cpp +++ b/src/simulation/elements/FILT.cpp @@ -119,7 +119,7 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl) //#TPT-Directive ElementHeader Element_FILT static int getWavelengths(Particle* cpart) int Element_FILT::getWavelengths(Particle* cpart) { - if (cpart->ctype) + if (cpart->ctype&0x3FFFFFFF) { return cpart->ctype; }