From: fred Date: Sun, 24 Mar 2002 19:59:00 +0000 (+0000) Subject: lilypond-0.1.18 X-Git-Tag: release/1.5.59~3812 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8f05902a817421b64c6ae31b6405b6efc260c20c;p=lilypond.git lilypond-0.1.18 --- diff --git a/lily/atom.cc b/lily/atom.cc index 0f1f205289..423181603d 100644 --- a/lily/atom.cc +++ b/lily/atom.cc @@ -57,7 +57,7 @@ Atom::TeX_string() const Offset off = off_; /* infinity checks. */ - for (int a =X_AXIS; a < NO_AXES; a++) + for (int a = X_AXIS; a < NO_AXES; a++) { Axis ax = (Axis)a; if (abs (off[ax]) >= 100 CM) @@ -75,3 +75,15 @@ Atom::TeX_string() const s += tex_str + "}"; return s; } + +void +Atom::translate (Real r, Axis a) +{ + off_[a] += r; +} + +void +Atom::translate (Offset o) +{ + off_ += o; +} diff --git a/lily/include/atom.hh b/lily/include/atom.hh index d25942c336..66c4a6cbba 100644 --- a/lily/include/atom.hh +++ b/lily/include/atom.hh @@ -22,13 +22,9 @@ struct Atom { String str() const; // for printing. Atom (String, Box); - Atom (); - void translate (Offset o) { - off_ += o; - } - void translate (Real r,Axis a){ - off_[a] += r; - } + Atom (); + void translate (Offset o); + void translate (Real r,Axis a); /// how big is #this#? Box extent() const; void print() const;