From 92b1d62a594d63d2a06f5e6b7412c4a8f95f870c Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 22:47:21 +0000 Subject: [PATCH] lilypond-1.3.38 --- lily/stem.cc | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/lily/stem.cc b/lily/stem.cc index 470d324552..54f9c0e9cd 100644 --- a/lily/stem.cc +++ b/lily/stem.cc @@ -25,7 +25,7 @@ #include "group-interface.hh" #include "cross-staff.hh" #include "staff-symbol-referencer.hh" -#include "lily-guile.icc" + void @@ -252,6 +252,11 @@ Stem::get_default_dir () const return Direction (int(paper_l ()->get_var ("stem_default_neutral_direction"))); } +/* + ugh. A is used for different purposes. This functionality should be + moved into scheme at some point to get rid of the silly + conversions. (but lets wait till we have namespaces in SCM) + */ Real Stem::get_default_stem_end_position () const { @@ -268,15 +273,20 @@ Stem::get_default_stem_end_position () const } else { - s = ly_eval_str (type_str + "stem-length"); - scm_to_array (s, &a); + s = scm_eval (ly_symbol2scm ((type_str + "stem-length").ch_C())); + for (SCM q = s; q != SCM_EOL; q = gh_cdr (q)) + a.push (gh_scm2double (gh_car (q))); + // stem uses half-spaces length_f = a[((flag_i () - 2) >? 0)