X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Fnote-head.cc;h=00539b06d072e0e90c7cd85099e09f5756d368ba;hb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;hp=3ae349b28bfcef63ecdc2b218ac7e55f4b7010f5;hpb=1e95a0be01466d1c98644f7705c8e07e41cc645c;p=lilypond.git diff --git a/lily/note-head.cc b/lily/note-head.cc index 3ae349b28b..00539b06d0 100644 --- a/lily/note-head.cc +++ b/lily/note-head.cc @@ -3,13 +3,13 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1998 Han-Wen Nienhuys */ #include "misc.hh" #include "dots.hh" #include "note-head.hh" -#include "dimen.hh" +#include "dimension.hh" #include "debug.hh" #include "paper-def.hh" #include "lookup.hh" @@ -47,7 +47,7 @@ Note_head::compare (Note_head *const &a, Note_head * const &b) Interval Note_head::do_width () const { - Atom a = paper ()->lookup_l()->ball (balltype_i_); + Atom a = lookup_l ()->ball (balltype_i_); Interval i = a.dim_[X_AXIS]; i+= x_dir_ * i.length (); return i; @@ -65,14 +65,14 @@ Note_head::brew_molecule_p() const ? 0 : (abs(position_i_) - staff_size_i_/2) /2; - Atom s = p->lookup_l()->ball (balltype_i_); + Atom s = lookup_l()->ball (balltype_i_); out = new Molecule (Atom (s)); out->translate_axis (x_dir_ * s.dim_[X_AXIS].length (), X_AXIS); if (streepjes_i) { int dir = sign (position_i_); - Atom streepje = p->lookup_l ()->streepje (balltype_i_); + Atom streepje = lookup_l ()->streepje (balltype_i_); int parity = (position_i_ % 2) ? 1 : 0; @@ -82,7 +82,7 @@ Note_head::brew_molecule_p() const Atom s = streepje; s.translate_axis (-dir * inter_f * (i*2 + parity), Y_AXIS); - out->add (s); + out->add_atom (s); } }