about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-10-21 17:58:21 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-10-21 17:58:21 +0000
commitedb3f361e8a1080c3583f35b17b7ca94af5702ac (patch)
tree8bcf003a7f2335ef156fd82c35a48863fa591f3a
parent2ae6ad9d7b411ebefb4116f80443db7d3154b8d3 (diff)
downloadnetpbm-mirror-edb3f361e8a1080c3583f35b17b7ca94af5702ac.tar.gz
netpbm-mirror-edb3f361e8a1080c3583f35b17b7ca94af5702ac.tar.xz
netpbm-mirror-edb3f361e8a1080c3583f35b17b7ca94af5702ac.zip
Fix bug: doesn't recognize AutoCAD slide file because of botched cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3088 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/ppm/sldtoppm.c2
-rw-r--r--doc/HISTORY4
2 files changed, 5 insertions, 1 deletions
diff --git a/converter/ppm/sldtoppm.c b/converter/ppm/sldtoppm.c
index 87bc10e3..ef541da2 100644
--- a/converter/ppm/sldtoppm.c
+++ b/converter/ppm/sldtoppm.c
@@ -350,7 +350,7 @@ slider(slvecfn   slvec,
 
     /* Verify that slide format is compatible with this program. */
 
-    if (streq(slfrof.slh, slhi.slh))
+    if (!streq(slfrof.slh, slhi.slh))
         pm_error("this is not an AutoCAD slide file.");
 
     /* Verify that the number format and file level in the header  are
diff --git a/doc/HISTORY b/doc/HISTORY
index 89f4b6a5..9a2ed38c 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,10 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.81.00
 
+              sldtoppm: fix bug: says AutoCAD slide file isn't an AutoCAD
+              slide file.  Broken after Netpbm 10.26 (January 2005), but no
+              later than 10.35 (August 2006).
+
 17.09.30 BJH  Release 10.80.00
 
               pnmtopalm: Refuse to create a compressed image with more than 8