;;;; This file is part of LilyPond, the GNU music typesetter.
;;;;
-;;;; Copyright (C) 2000--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+;;;; Copyright (C) 2000--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
;;;; Jan Nieuwenhuizen <janneke@gnu.org>
;;;;
;;;; LilyPond is free software: you can redistribute it and/or modify
}
@end lilypond"
(if (> amount 0)
- (ly:make-stencil "" (cons 0 amount) '(-1 . 1))
- (ly:make-stencil "" (cons amount amount) '(-1 . 1))))
+ (ly:make-stencil "" (cons 0 amount) '(0 . 0))
+ (ly:make-stencil "" (cons amount amount) '(0 . 0))))
;; todo: fix negative space
(define-markup-command (vspace layout props amount)
(if (null? (remove ly:stencil-empty? orig-stencils))
empty-stencil
- (stack-stencils-padding-list X
- RIGHT fill-space-normal line-stencils))))
+ (ly:stencil-translate-axis
+ (stack-stencils-padding-list X
+ RIGHT fill-space-normal line-stencils)
+ (- (car (ly:stencil-extent (car stencils) X)))
+ X))))
(define-markup-command (line layout props args)
(markup-list?)