Skip to content

Commit 994a97c

Browse files
committed
wb: fix illuminants.h switch-case fall-through introduced when DT_ILLUMINANT_CAMERA was added
1 parent 7e13564 commit 994a97c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/common/illuminants.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ static inline int illuminant_to_xy(const dt_illuminant_t illuminant, /
298298
// Model valid for T in [1667 ; 25000] K
299299
CCT_to_xy_blackbody(t, &x, &y);
300300
if(y != 0.f && x != 0.f) break;
301-
// else t is out of bounds -> use custom/original values (next case)
301+
// else t is out of bounds -> use custom/original values
302+
return FALSE;
302303
}
303304
case DT_ILLUMINANT_CAMERA:
304305
{

0 commit comments

Comments
 (0)