From: Mike Solomon <mike@apollinemike.com>
Date: Sun, 18 Sep 2011 17:09:52 +0000 (+0200)
Subject: Uses Beam::is_knee instead of get_property ("knee") to check for kneed beams.
X-Git-Tag: release/2.15.12-1~13
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c5ad460900053386d681386482cd60119194b954;p=lilypond.git

Uses Beam::is_knee instead of get_property ("knee") to check for kneed beams.

This fixes a problem in the code base where the first stem of a beam sometimes
had an ideal_y of its stem_info set to an incorrect value.
---

diff --git a/lily/stem.cc b/lily/stem.cc
index 6575914789..f6bedcfd95 100644
--- a/lily/stem.cc
+++ b/lily/stem.cc
@@ -988,7 +988,7 @@ Stem::calc_stem_info (SCM smob)
 
   Also, not for knees.  Seems to be a good thing. */
   bool no_extend = to_boolean (me->get_property ("no-stem-extend"));
-  bool is_knee = to_boolean (beam->get_property ("knee"));
+  bool is_knee = Beam::is_knee (beam);
   if (!no_extend && !is_knee)
     {
       /* Highest beam of (UP) beam must never be lower than middle