From: hanwen Date: Wed, 5 Jun 2002 15:18:44 +0000 (+0000) Subject: * lily/beam.cc (shift_region_to_valid): fix stupido bug. X-Git-Tag: release/1.5.60~6 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=6e21717351f379063a297770b55f73745c6b4478;p=lilypond.git * lily/beam.cc (shift_region_to_valid): fix stupido bug. * buildscripts/lilypond-profile.sh: override settings if LILYPONDPREFIX is set. --- diff --git a/ChangeLog b/ChangeLog index c363bb4559..0be7d5f194 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-06-05 Han-Wen Nienhuys + + * lily/beam.cc (shift_region_to_valid): fix stupido bug. + + * buildscripts/lilypond-profile.sh: override settings if + LILYPONDPREFIX is set. + 2002-06-04 Mats Bengtsson * scripts/ly2dvi.py (non_path_environment): Fix typo diff --git a/buildscripts/lilypond-profile.sh b/buildscripts/lilypond-profile.sh index 40e16297a9..720f2dc099 100644 --- a/buildscripts/lilypond-profile.sh +++ b/buildscripts/lilypond-profile.sh @@ -7,19 +7,20 @@ # If run by hand or from you .profile, run as follows # . lilypond-profile -datadir=`echo "@datadir@" | sed 's!//!/!g'` +if [ "$LILYPONDPREFIX" == "" ] ; then + datadir=`echo "@datadir@" | sed 's!//!/!g'` +else + +## to support development from ~/usr/src/lilypon. + datadir=$LILYPONDPREFIX +fi + # For direct ps output: ps/lilyponddefs.ps GS_LIB="$datadir/ps:"${GS_LIB:=""} export GS_LIB -# bit silly. for ly2dvi, overrules compiled-in datadir... -# Better comment this out. Compiled-in datadir serves exactly the -# same purpose, but is more likely to be correct (think multiple -# versions of lilypond). -# LILYPONDPREFIX="$datadir" -# export LILYPONDPREFIX # Add the installation directory to the teTeX system tree, # see Documentation/misc/fontinstallation diff --git a/lily/beam.cc b/lily/beam.cc index eba9e63373..740c0ac532 100644 --- a/lily/beam.cc +++ b/lily/beam.cc @@ -867,11 +867,8 @@ Beam::shift_region_to_valid (SCM grob) Direction d = Stem::get_direction (s); - /* - TODO: use real beam space function - */ Real left_y = Stem::calc_stem_info (s).shortest_y_ - - dydx * (x_posns [i] - x0); + - dydx * x_posns [i]; Interval flp ; flp.set_full ();