From 094535c010320967639e8e86f974d878e80baa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 1 May 2015 16:13:57 +0200 Subject: Imported Upstream version 1.7.0 --- xicc/transplot.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xicc/transplot.c') 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 */ -- cgit v1.2.3