]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lyric-engraver.cc
release: 1.1.1
[lilypond.git] / lily / lyric-engraver.cc
index 8ed3989043f69944ed4c1cad1f4e7d59bf2c2bc4..9555cad7ebbd1182bb65817d23a025ad13085d0f 100644 (file)
@@ -23,12 +23,12 @@ Lyric_engraver::Lyric_engraver()
 bool
 Lyric_engraver::do_try_request (Request*r)
 {
-  Musical_req * m =r->access_Musical_req ();
-  if (!m || ! m->access_Lyric_req ()) 
-    return false;
-  lreq_l_ = m->access_Lyric_req ();
-
-  return true;
+  if (Lyric_req * lr = dynamic_cast <Lyric_req *> (r))
+    {
+      lreq_l_ = lr;
+      return true;
+    }
+  return false;
 }
 
 void
@@ -44,6 +44,11 @@ Lyric_engraver::do_process_requests()
        {
          td_p->style_str_ = style;
        }
+      Scalar alignment = get_property ("textalignment");
+      if (alignment.isnum_b())
+       {
+         td_p->align_dir_= (Direction)(int)alignment;
+       }
       
       lyric_item_p_ =  new Text_item (td_p);