]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.64
authorfred <fred>
Tue, 26 Mar 2002 23:23:31 +0000 (23:23 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:23:31 +0000 (23:23 +0000)
lily/lyric-engraver.cc

index 64a306b3ed427a2ad07e3c92c9e6c63a83a6f922..5856b9231860be6725fce25e1a8811540e0bd17b 100644 (file)
@@ -12,6 +12,7 @@
 #include "item.hh"
 #include "paper-def.hh"
 #include "lookup.hh"
+#include "side-position-interface.hh"
 
 ADD_THIS_TRANSLATOR (Lyric_engraver);
 
@@ -45,6 +46,13 @@ Lyric_engraver::do_process_music()
       text_p_->set_elt_property ("text",
                                 ly_str02scm   ((req_l_->text_str_ + " ").ch_C ()));
 
+      text_p_->add_offset_callback (&Side_position_interface::aligned_on_self,X_AXIS);
+      /*
+       We can't reach the notehead where we're centered from here. So
+       we kludge.
+      */
+      text_p_->translate_axis (paper_l()->get_var ("quartwidth")/2, X_AXIS);
+      
       announce_element (Score_element_info (text_p_, req_l_));
     }
 }