From c4bc278c8d3c24f9df3dd0ad1d2ff1f2de600b3e Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 9 Mar 2004 23:14:20 +0000 Subject: [PATCH] *** empty log message *** --- lily/paper-book.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lily/paper-book.cc b/lily/paper-book.cc index 8beddc6d33..854356baf6 100644 --- a/lily/paper-book.cc +++ b/lily/paper-book.cc @@ -126,10 +126,17 @@ Paper_book::get_title (int i) SCM s = ly_modules_lookup (get_scopes (i), field); if (s != SCM_UNDEFINED && scm_variable_bound_p (s) == SCM_BOOL_T) - return unsmob_stencil (gh_call2 (make_title, - // papers_[i]->self_scm (), - papers_[0]->self_scm (), - scm_variable_ref (s))); + { + Stencil *title = unsmob_stencil (gh_call2 (make_title, + papers_[0]->self_scm (), + scm_variable_ref (s))); + + /* match systems, which are also aligned to center */ + //(ly:stencil-align-to! header-stencil Y CENTER) + title->align_to (Y_AXIS, CENTER); + return title; + } + return 0; } -- 2.39.5