diff options
-rw-r--r-- | analyzer/ppmhist.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 4 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); diff --git a/doc/HISTORY b/doc/HISTORY index a1f46406..f5617a12 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -25,6 +25,9 @@ not yet BJH Release 10.75.00 hpcdtoppm dummy version: update web link to real version. + ppmhist: fix incorrect color names. Introduced in + Netpbm 10.19 (November 2003). + ppmshadow: fix bug: don't ignore invalid option. Introduced in Netpbm 10.9 (September 2002). |