]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3023: Papersizes with landscape/portrait suffix are not recognized by -dpapersize
authorDavid Kastrup <dak@gnu.org>
Sat, 15 Dec 2012 08:34:23 +0000 (09:34 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 7 Jan 2013 03:02:56 +0000 (04:02 +0100)
commitbe9797b22cb9d253dc40dc624fdbd1a48960baf2
treedbcf40ec9ad8c23a72cd314f964fa0e0630c3437
parent02a883ede0729365c92042cfaa003e82c834054a
Issue 3023: Papersizes with landscape/portrait suffix are not recognized by -dpapersize

This factors out the papersize recognition into a function
lookup-paper-name.  It also streamlines error handling somewhat.  A
conditional checking paper-default to be non-#f could only ever be
triggered in an error situation.  Since it does not make sense to
treat the error condition of "bad paper-alist entry" and "unrecognized
paper format" differently, this has been folded into the simpler case,
namely considering the specified width and height in
set-paper-dimensions as a substitute for the valid default paper size.
scm/paper.scm