summaryrefslogtreecommitdiff
path: root/xicc/transplot.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-05-01 16:13:57 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-05-01 16:13:57 +0200
commit094535c010320967639e8e86f974d878e80baa72 (patch)
treeefc3094b20355dcbeebb2c4ece4fcfc69bffedb5 /xicc/transplot.c
parentc07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (diff)
Imported Upstream version 1.7.0upstream/1.7.0
Diffstat (limited to 'xicc/transplot.c')
-rw-r--r--xicc/transplot.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/xicc/transplot.c b/xicc/transplot.c
index d4600d9..6473e2b 100644
--- a/xicc/transplot.c
+++ b/xicc/transplot.c
@@ -1,6 +1,5 @@
/*
- * International Color Consortium Format Library (icclib)
* Check various aspects of RGB or CMYK device link,
* and RGB/CMYK profile transfer characteristics.
*
@@ -29,6 +28,7 @@
#include "icc.h"
#include "numlib.h"
#include "plot.h"
+#include "ui.h"
void usage(void) {
fprintf(stderr,"Check CMYK/RGB/PCS->PCS/CMYK/RGB transfer response\n");
@@ -321,8 +321,12 @@ main(
}
if (labout)
do_plot6(xx,y0,y1,NULL,NULL,y2,NULL,XRES);
- else
- do_plot6(xx,y3,y1,NULL,y0,y2,NULL,XRES);
+ else {
+ if (outs == icSigCmykData)
+ do_plot6(xx,y3,y1,NULL,y0,y2,NULL,XRES);
+ else /* Assume RGB */
+ do_plot6(xx,NULL,y0,y1,y2,NULL,NULL,XRES);
+ }
}
/* Done with lookup object */