about summary refs log tree commit diff
path: root/converter/other/pngtopam.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-01-15 20:02:59 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-01-15 20:02:59 +0000
commit94dc9f782d8f3fe709468c86dabb86a71053b87d (patch)
tree4c5f81e9ea83b85fc1748da9a3e02a527866b47f /converter/other/pngtopam.c
parent0b629ee831dceb2565eba86f0b359b0bdb63535e (diff)
downloadnetpbm-mirror-94dc9f782d8f3fe709468c86dabb86a71053b87d.tar.gz
netpbm-mirror-94dc9f782d8f3fe709468c86dabb86a71053b87d.tar.xz
netpbm-mirror-94dc9f782d8f3fe709468c86dabb86a71053b87d.zip
Fix bug: -verbose reports history chunk present when it's really a palette
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1388 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pngtopam.c')
-rw-r--r--converter/other/pngtopam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pngtopam.c b/converter/other/pngtopam.c
index 2f99d4ac..5dbacd1d 100644
--- a/converter/other/pngtopam.c
+++ b/converter/other/pngtopam.c
@@ -527,7 +527,7 @@ dumpPngInfo(struct pngx * const pngxP) {
     else
         pm_message("bKGD chunk: not present");
 
-    if (info_ptr->valid & PNG_INFO_PLTE)
+    if (info_ptr->valid & PNG_INFO_HIST)
         pm_message("hIST chunk: present");
     else
         pm_message("hIST chunk: not present");