]> git.donarmstrong.com Git - lilypond.git/commitdiff
Thinko: compare abs of both positions. release/2.11.41-1
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 25 Feb 2008 02:36:43 +0000 (23:36 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 25 Feb 2008 02:36:43 +0000 (23:36 -0300)
lily/side-position-interface.cc

index a3c4ca08a75a4594bb71c1f64200adac9cc56f72..bffcf98426f727b79f1613a10b9b67a4b7a62ee4 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <cmath>               // ceil.
 #include <algorithm>
+
 using namespace std;
 
 #include "directional-element-interface.hh"
@@ -251,7 +252,7 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
              /* In case of a ledger lines, quantize even if we're outside the staff. */
              || (Note_head::has_interface (head)
                  
-                 && abs (Staff_symbol_referencer::get_position (head)) > position))
+                 && abs (Staff_symbol_referencer::get_position (head)) > abs (position)))
            {
              o += (rounded - position) * 0.5 * ss;
              if (Staff_symbol_referencer::on_line (me, int (rounded)))