]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.18
authorfred <fred>
Sun, 24 Mar 2002 19:59:00 +0000 (19:59 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:59:00 +0000 (19:59 +0000)
lily/atom.cc
lily/include/atom.hh

index 0f1f2052891710a10d25883ab588aa3e53a12580..423181603dc1c5141de2c1473581019a5d25c082 100644 (file)
@@ -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;
+}
index d25942c33643bc08039dfb6f0c48d71ccfc0d78c..66c4a6cbba908f886575b9675c50141b2d334292 100644 (file)
@@ -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;