summaryrefslogtreecommitdiff
path: root/lily/crescendo.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>1997-04-10 14:46:59 +0200
committerHan-Wen Nienhuys <hanwen@xs4all.nl>1997-04-10 14:46:59 +0200
commit7f0a3b682bebc864fbca295deba301238d805274 (patch)
tree99a462859dca9fe74a8aa2e56458d438f9bd78b3 /lily/crescendo.cc
parent79511c44a27908a1beaed25bbcac8d95a8a6b7c8 (diff)
release: 0.0.50
Diffstat (limited to 'lily/crescendo.cc')
-rw-r--r--lily/crescendo.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/lily/crescendo.cc b/lily/crescendo.cc
index e8a36e29a8..4583bdae2f 100644
--- a/lily/crescendo.cc
+++ b/lily/crescendo.cc
@@ -10,9 +10,10 @@
#include "lookup.hh"
#include "paper-def.hh"
#include "debug.hh"
-Crescendo::Crescendo(int s)
+
+Crescendo::Crescendo()
+ : Staff_side(this)
{
- staff_size_i_ = s;
grow_dir_i_ =0;
dir_i_ = -1 ;
left_dyn_b_ = right_dyn_b_ =false;
@@ -47,9 +48,7 @@ Crescendo::brew_molecule_p() const return m_p ;
}
Symbol s( paper()->lookup_l()->hairpin(w_dim, grow_dir_i_ < 0) );
m_p->add(Atom(s));
- int pos = (dir_i_ >0) ? staff_size_i_ + 4 : - 4 ;
- if(dir_i_<0 ) // should do something better anyway.
- m_p->translate(Offset(0, -m_p->extent().y.left ));
+ int pos = get_position_i();
m_p->translate(Offset(x_off_dim,pos * paper()->internote()));
}