]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/head-grav.cc
release: 0.1.7
[lilypond.git] / lily / head-grav.cc
index 952f6d867073f430403791de50c565d922e432e9..2db5d4ac0b75a27188fd578964091a79aa78291a 100644 (file)
@@ -40,8 +40,10 @@ Note_head_engraver::do_process_requests()
     n_p->set_rhythmic(note_req_l_->rhythmic());
 
     if (note_req_l_->note()) {
-       n_p->position_i_ = note_req_l_->note()->height() +
-           *get_staff_info().c0_position_i_l_;
+       n_p->position_i_ = note_req_l_->note()->height();
+       Staff_info inf = get_staff_info();
+       if (inf.c0_position_i_l_)
+           n_p->position_i_ += *inf.c0_position_i_l_;
     } else if (note_req_l_->rest()) {
        n_p->rest_b_ = true;
     }