From 3db384424bd7398ffbb7a355cab8f15f3add009f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Oct 2016 19:24:58 +0200 Subject: New upstream version 1.9.1+repack --- xicc/ccttest.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'xicc/ccttest.c') diff --git a/xicc/ccttest.c b/xicc/ccttest.c index 52bbdac..1b859b5 100644 --- a/xicc/ccttest.c +++ b/xicc/ccttest.c @@ -238,9 +238,18 @@ main( #endif if (in_name[0] != '\000') { - if (read_xspect(&sp, in_name) != 0) + inst_meas_type mt; + + if (read_xspect(&sp, &mt, in_name) != 0) error ("Unable to read custom spectrum '%s'",in_name); + if (mt != inst_mrt_none + && mt != inst_mrt_emission + && mt != inst_mrt_ambient + && mt != inst_mrt_emission_flash + && mt != inst_mrt_ambient_flash) + error("Custom illuminant '%s' is wrong measurement type",in_name); + sprintf(buf, "File '%s'",in_name); do_spec(buf, &sp); -- cgit v1.2.3