]> git.donarmstrong.com Git - lilypond.git/commitdiff
Scrubs anchor-align and anchor_align from the Line_spanner_interface.
authorMike Solomon <mike@apollinemike.com>
Thu, 16 Jun 2011 12:32:34 +0000 (14:32 +0200)
committerMike Solomon <mike@apollinemike.com>
Thu, 16 Jun 2011 12:32:34 +0000 (14:32 +0200)
lily/line-spanner.cc

index 0235243628b0dc1a74a9cab08c1d462b14a3bb42..d7f4837a2511f936877ec8d1d0e09e04b827a5ed 100644 (file)
@@ -246,7 +246,6 @@ Line_spanner::print (SCM smob)
 
   Drul_array<Real> gaps (0, 0);
   Drul_array<bool> arrows (0, 0);
-  Drul_array<Real> anchor_align (0, 0);
   Drul_array<Stencil *> stencils (0,0);
   Drul_array<Grob *> common_y (0, 0);
 
@@ -260,8 +259,6 @@ Line_spanner::print (SCM smob)
                                                 bounds[d], SCM_BOOL_F), 0.0);
       arrows[d] = to_boolean (ly_assoc_get (ly_symbol2scm ("arrow"),
                                            bounds[d], SCM_BOOL_F));
-      anchor_align[d] = robust_scm2double (ly_assoc_get (ly_symbol2scm ("anchor-alignment"),
-                                                        bounds[d], SCM_BOOL_F), LEFT);
       stencils[d] = unsmob_stencil (ly_assoc_get (ly_symbol2scm ("stencil"),
                                                  bounds[d], SCM_BOOL_F));
       common_y[d] = unsmob_grob (ly_assoc_get (ly_symbol2scm ("common-Y"),
@@ -296,10 +293,6 @@ Line_spanner::print (SCM smob)
 
       if (stencils[d])
        {
-         Interval ext = stencils[d]->extent (X_AXIS);
-         Real anchor = ext.linear_combination (anchor_align[d]) - ext[LEFT];
-         span_points[d][X_AXIS] -= anchor;
-
          Stencil s = stencils[d]->translated (span_points[d]);
          SCM align = ly_assoc_get (ly_symbol2scm ("stencil-align-dir-y"),
                                    bounds[d], SCM_BOOL_F);