summaryrefslogtreecommitdiff
path: root/xicc/ccttest.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
commitc2ca7be5a751879159f3cb591a64bb9568b79762 (patch)
tree04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /xicc/ccttest.c
parent45c152c326d87478fbf41714b4b8e2f7b57a282b (diff)
parent3db384424bd7398ffbb7a355cab8f15f3add009f (diff)
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'xicc/ccttest.c')
-rw-r--r--xicc/ccttest.c11
1 files changed, 10 insertions, 1 deletions
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);