about summary refs log tree commit diff
path: root/analyzer/ppmhist.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-05-03 06:06:16 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-05-03 06:06:16 +0000
commit1fc67a64797d818df4b807c2185a12c9992d8915 (patch)
tree9d4749210e7b6445adaceaee2fa25fb564a74f54 /analyzer/ppmhist.c
parentdbf5010eb786407742c45e6a11652bc11c6b1a46 (diff)
downloadnetpbm-mirror-1fc67a64797d818df4b807c2185a12c9992d8915.tar.gz
netpbm-mirror-1fc67a64797d818df4b807c2185a12c9992d8915.tar.xz
netpbm-mirror-1fc67a64797d818df4b807c2185a12c9992d8915.zip
fix incorrect color names because color not normalized to color dictionary
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2749 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/ppmhist.c')
-rw-r--r--analyzer/ppmhist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/analyzer/ppmhist.c b/analyzer/ppmhist.c
index cc47bb82..9b526606 100644
--- a/analyzer/ppmhist.c
+++ b/analyzer/ppmhist.c
@@ -322,7 +322,7 @@ colornameLabel(pixel        const color,
 
     PPM_DEPTH(color255, color, maxval, 255);
 
-    colorIndex = ppm_findclosestcolor(dictColors, nDictColor, &color);
+    colorIndex = ppm_findclosestcolor(dictColors, nDictColor, &color255);
 
     assert(colorIndex >= 0 && colorIndex < nDictColor);