1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Don't count colors without RGB values as gray shades.

This commit is contained in:
Eli Zaretskii 2000-02-02 11:34:25 +00:00
parent c527e60052
commit 26b09289ed

View file

@ -971,7 +971,8 @@ A color is considered gray if the 3 components of its RGB value are equal."
r (car desc)
g (cadr desc)
b (car (cddr desc)))
(and (eq r g) (eq g b)
(and (numberp r)
(eq r g) (eq g b)
(setq count (1+ count)))
(setq colors (cdr colors)))
count))