summaryrefslogtreecommitdiff
path: root/lily/script.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>1999-07-26 11:32:25 +0200
committerHan-Wen Nienhuys <hanwen@xs4all.nl>1999-07-26 11:32:25 +0200
commit61c4b07cddc6231c3ca4b45a0aa86d27e25110b9 (patch)
treefbdd0866030c186d673b827dab89563ffb5d6c2e /lily/script.cc
parentd9d9a1b85f7d68dd35fb435c5ca315c6eb793af0 (diff)
release: 1.1.67
Diffstat (limited to 'lily/script.cc')
-rw-r--r--lily/script.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/lily/script.cc b/lily/script.cc
index 984d20063a..71adfd6339 100644
--- a/lily/script.cc
+++ b/lily/script.cc
@@ -1,5 +1,5 @@
/*
- g-script.cc -- implement Script
+ script.cc -- implement Script
source file of the GNU LilyPond music typesetter
@@ -17,6 +17,7 @@
#include "lookup.hh"
#include "staff-side.hh"
#include "paper-def.hh"
+#include "dimension-cache.hh"
Script::Script ()
{
@@ -59,6 +60,9 @@ Script::get_molecule(Direction d) const
void
Script::do_pre_processing ()
{
+ /*
+ center my self on the note head.
+ */
Graphical_element * e
= staff_side_l_->dim_cache_[X_AXIS]->parent_l_->element_l();
translate_axis (e->extent (X_AXIS).center (), X_AXIS);
@@ -69,7 +73,12 @@ Script::do_post_processing ()
{
Direction d = staff_side_l_->dir_;
Molecule m (get_molecule(d));
- translate_axis (- m.dim_[Y_AXIS][Direction (-d)], Y_AXIS);
+
+ /*
+ UGH UGH UGH
+ */
+ if (staff_side_l_->get_elt_property (no_staff_support_scm_sym) == SCM_BOOL_F)
+ translate_axis (- m.dim_[Y_AXIS][Direction (-d)], Y_AXIS);
}
void