]> git.donarmstrong.com Git - lilypond.git/commitdiff
Bugfix: uniq-list uses equal? iso. eq?.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 6 Jan 2008 18:30:29 +0000 (16:30 -0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 6 Jan 2008 18:30:29 +0000 (16:30 -0200)
This fixes duplicate embedded fonts in the PS files.

scm/lily-library.scm

index c925a808f17c0704598ccd452e38bd7432f256c3..ae13bbebf0ec748142485952847b75a2d1273587 100644 (file)
@@ -309,13 +309,13 @@ found."
   (lset-difference eq? a b))
 
 (define-public (uniq-list lst)
-  "Uniq LST, assuming that it is sorted"
+  "Uniq LST, assuming that it is sorted. Uses equal? for comparisons."
 
   (reverse! 
    (fold (lambda (x acc)
           (if (null? acc)
               (list x)
-              (if (eq? x (car acc))
+              (if (equal? x (car acc))
                   acc
                   (cons x acc))))
         '() lst) '()))