]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.61
authorfred <fred>
Sun, 24 Mar 2002 19:42:37 +0000 (19:42 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:42:37 +0000 (19:42 +0000)
lily/text-reg.cc

index 82e12d6cd7c869c211958ac769fa78a7d8ad7aae..a3231cec410027c2d4cd370b8e1e4fa3aca8b212 100644 (file)
@@ -39,7 +39,7 @@ void
 Text_register::process_requests()
 {
     if (text_req_l_) {
-       text_p_ = new Text_item(text_req_l_->tdef_p_, 0); // ugh
+       text_p_ = new Text_item(text_req_l_->tdef_p_, text_req_l_->dir_i_); // ugh
        announce_element(Staff_elem_info(text_p_, text_req_l_));
     }
 }
@@ -47,7 +47,8 @@ void
 Text_register::pre_move_processing()
 {
     if (text_p_) {
-       text_p_->dir_i_ = dir_i_;
+       if (dir_i_ && !text_p_->dir_i_)
+           text_p_->dir_i_ = dir_i_;
        Staff_symbol* s_l = get_staff_info().staff_sym_l_;
        text_p_->set_staffsym(s_l);
        typeset_element(text_p_);