summaryrefslogtreecommitdiff
path: root/xicc/mpplu.c
diff options
context:
space:
mode:
Diffstat (limited to 'xicc/mpplu.c')
-rw-r--r--xicc/mpplu.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/xicc/mpplu.c b/xicc/mpplu.c
index 11ddb76..09fe18c 100644
--- a/xicc/mpplu.c
+++ b/xicc/mpplu.c
@@ -214,10 +214,20 @@ main(int argc, char *argv[]) {
spec = 1;
illum = icxIT_F10;
} else { /* Assume it's a filename */
+ inst_meas_type mt;
+
spec = 1;
illum = icxIT_custom;
- if (read_xspect(&cust_illum, na) != 0)
+ if (read_xspect(&cust_illum, &mt, na) != 0)
usage();
+
+ 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",na);
+ }
}
}