summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaxguy <faxguy>2010-12-12 06:59:00 +0000
committerfaxguy <faxguy>2010-12-12 06:59:00 +0000
commit1539b585539b49b2ebe20768c8ce03541d6c7253 (patch)
tree15273b36c3732f4f4e8e954e925542850ef4675c
parentdb8661579206a236d3fc97828c4a333e0ef48a26 (diff)
downloadlibtiff-1539b585539b49b2ebe20768c8ce03541d6c7253.tar.gz
* tools/tiff2pdf.c: remove invalid duplication for Lab
http://bugzilla.maptools.org/show_bug.cgi?id=2162
-rw-r--r--ChangeLog5
-rw-r--r--tools/tiff2pdf.c10
2 files changed, 6 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index f3d908da..166346c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-12-11 Lee Howard <faxguy@howardsilvan.com>
+ * tools/tiff2pdf.c: remove invalid duplication for Lab
+ http://bugzilla.maptools.org/show_bug.cgi?id=2162
+
+2010-12-11 Lee Howard <faxguy@howardsilvan.com>
+
* libtiff/tif_jpeg.c: fix use of clumplines calculation
http://bugzilla.maptools.org/show_bug.cgi?id=2149
diff --git a/tools/tiff2pdf.c b/tools/tiff2pdf.c
index ee97ad0b..c0bba31e 100644
--- a/tools/tiff2pdf.c
+++ b/tools/tiff2pdf.c
@@ -1,4 +1,4 @@
-/* $Id: tiff2pdf.c,v 1.37.2.17 2010-12-11 22:48:16 faxguy Exp $
+/* $Id: tiff2pdf.c,v 1.37.2.18 2010-12-12 06:59:00 faxguy Exp $
*
* tiff2pdf - converts a TIFF image to a PDF document
*
@@ -4658,14 +4658,6 @@ tsize_t t2p_write_pdf_xobject_cs(T2P* t2p, TIFF* output){
Y_W = 1.0F;
buflen=sprintf(buffer, "[%.4f %.4f %.4f] \n", X_W, Y_W, Z_W);
written += t2pWriteFile(output, (tdata_t) buffer, buflen);
- X_W = 0.3457F; /* 0.3127F; */ /* D50, commented D65 */
- Y_W = 0.3585F; /* 0.3290F; */
- Z_W = 1.0F - (X_W + Y_W);
- X_W /= Y_W;
- Z_W /= Y_W;
- Y_W = 1.0F;
- buflen=sprintf(buffer, "[%.4f %.4f %.4f] \n", X_W, Y_W, Z_W);
- written += t2pWriteFile(output, (tdata_t) buffer, buflen);
written += t2pWriteFile(output, (tdata_t) "/Range ", 7);
buflen=sprintf(buffer, "[%d %d %d %d] \n",
t2p->pdf_labrange[0],