From: Han-Wen Nienhuys Date: Mon, 25 Feb 2008 02:36:43 +0000 (-0300) Subject: Thinko: compare abs of both positions. X-Git-Tag: release/2.11.41-1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=82e98bb5d304b87749261f2054b219a5ab78433f;p=lilypond.git Thinko: compare abs of both positions. --- diff --git a/lily/side-position-interface.cc b/lily/side-position-interface.cc index a3c4ca08a7..bffcf98426 100644 --- a/lily/side-position-interface.cc +++ b/lily/side-position-interface.cc @@ -10,6 +10,7 @@ #include // ceil. #include + 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)))