X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frest.cc;h=dc13cb911f14c724dc40f6a15b5fd01f7994740d;hb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;hp=e46f3f8673f80cd13896edeaab7d7840df63920d;hpb=1e95a0be01466d1c98644f7705c8e07e41cc645c;p=lilypond.git diff --git a/lily/rest.cc b/lily/rest.cc index e46f3f8673..dc13cb911f 100644 --- a/lily/rest.cc +++ b/lily/rest.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1998 Han-Wen Nienhuys */ #include "molecule.hh" @@ -17,7 +17,7 @@ void Rest::do_add_processing () { - if (balltype_i_ != 0 && balltype_i_ != 1) + if (balltype_i_ > 1) position_i_ -= 4; else if (balltype_i_ == 0) position_i_ += 2; @@ -41,7 +41,7 @@ Rest::brew_molecule_p () const bool streepjes_b = abs(position_i_) > staff_size_i_ /2 && (balltype_i_ == 0 || balltype_i_ == 1); - Atom s(paper ()->lookup_l()->rest (balltype_i_, streepjes_b)); + Atom s(lookup_l ()->rest (balltype_i_, streepjes_b)); Molecule * m = new Molecule ( Atom (s)); m->translate_axis (position_i_ * paper ()->internote_f (), Y_AXIS); return m;