Commits

Christian Kellermann  committed 57112f5

Provide proper default when no offset has been given

  • Participants
  • Parent commits ccbf8a1

Comments (0)

Files changed (1)

                  (h (cairo-image-surface-get-height s))
                  (offset? (and (not (null? data))
                               (>= (length data) 2)))
-                 (x-off (if offset? (car data)))
-                 (y-off (if offset? (cadr data)))
+                 (x-off (if offset? (car data) 0))
+                 (y-off (if offset? (cadr data) 0))
                  (scale-factor (and (= (length data) 3)
                                     (caddr data))))
             (set! *resources*