]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 9 Mar 2004 23:14:20 +0000 (23:14 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 9 Mar 2004 23:14:20 +0000 (23:14 +0000)
lily/paper-book.cc

index 8beddc6d33ef5d6376fbaa73f80adff81261ba1f..854356baf6a2bbe1fb8e29ece6c54344c94713fa 100644 (file)
@@ -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;
 }