From: Jan Nieuwenhuizen Date: Sat, 13 Mar 2004 21:38:28 +0000 (+0000) Subject: (output): Bugfix: no output if no \paper. X-Git-Tag: release/2.1.31~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a6e2861512e43ccd08f55ac276c0f2c7fb6f5dd2;p=lilypond.git (output): Bugfix: no output if no \paper. --- diff --git a/ChangeLog b/ChangeLog index 9cbf4403f6..3e11a64b60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-03-13 Jan Nieuwenhuizen + * lily/paper-book.cc (output): Bugfix: no output if no \paper. + * scm/lily.scm (get-output-module): New function. (output-alist): Remove ,ps-output-expression. diff --git a/lily/paper-book.cc b/lily/paper-book.cc index 31f939c557..6bcbe0c40e 100644 --- a/lily/paper-book.cc +++ b/lily/paper-book.cc @@ -212,6 +212,9 @@ Paper_book::~Paper_book () void Paper_book::output (String outname) { + if (!papers_.size ()) + return; + /* Generate all stencils to trigger font loads. */ Link_array *pages = get_pages ();