summaryrefslogtreecommitdiff
path: root/lily/ambitus.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>2004-07-23 15:33:04 +0000
committerHan-Wen Nienhuys <hanwen@xs4all.nl>2004-07-23 15:33:04 +0000
commit53ef525059b674cb00be84ccbcf99f17d727e0cb (patch)
tree470c8d0549dc512da928aff75cc5f66862197ab3 /lily/ambitus.cc
parent3c9561d788078f7ee4a6e1d973cf549d8f258935 (diff)
(create_ambitus): change name to
AmbitusLine. Create AmbitusAccidental and AmbitusNoteHead for other ambitus parts. (create_ambitus): group grobs in Ambitus grouping object.
Diffstat (limited to 'lily/ambitus.cc')
-rw-r--r--lily/ambitus.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lily/ambitus.cc b/lily/ambitus.cc
index bfcc7fd5c6..cb46229ec0 100644
--- a/lily/ambitus.cc
+++ b/lily/ambitus.cc
@@ -44,15 +44,15 @@ Ambitus::print (SCM smob)
}
Real pad = 0.35;
- Real pmax = maxh->relative_coordinate (common, Y_AXIS) - pad;
- Real pmin = minh->relative_coordinate (common, Y_AXIS) + pad;
+ Real pmax = maxh->extent (common, Y_AXIS)[DOWN] - pad;
+ Real pmin = minh->extent (common, Y_AXIS)[UP] + pad;
if (pmin < pmax)
{
- Real linethickness = me->get_paper ()->get_dimension (ly_symbol2scm ("linethickness"));
+ Real linethickness = me->get_paper ()->get_dimension (ly_symbol2scm ("linethickness")) * robust_scm2double (me->get_property ("thickness"), 1.0);
Real blotdiameter = me->get_paper ()->get_dimension (ly_symbol2scm ("blotdiameter"));
- Interval x_extent = 0.5 * Interval (-linethickness, +linethickness);
- Interval y_extent = 0.5 * Interval (pmin, pmax);
+ Interval x_extent = 0.5 * linethickness *Interval (-1,1);
+ Interval y_extent = Interval (pmin, pmax);
Box line_box (x_extent, y_extent);
Stencil line = Lookup::round_filled_box (line_box, blotdiameter);