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:
parent
c527e60052
commit
26b09289ed
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue