]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/clef-item.cc
release: 1.3.6
[lilypond.git] / lily / clef-item.cc
index 168a1e45e9b58d7ab1b378a2fc1273cb53f73b29..32a7d932739da3f72ac4ae5478bd42f60fed661a 100644 (file)
@@ -19,7 +19,7 @@
 void
 Clef_item::do_pre_processing()
 {
-  translate_axis (y_position_i_ * staff_line_leading_f () / 2.0, Y_AXIS);
+  Staff_symbol_referencer::do_pre_processing();
   SCM style_sym =get_elt_property ("style");
   String style;
   if (style_sym != SCM_UNDEFINED)
@@ -42,7 +42,7 @@ Clef_item::Clef_item()
   set_elt_property ("breakable", SCM_BOOL_T);
 
   symbol_ = "treble";
-  y_position_i_ = -2;
+  set_position(-2);
 }
 
 void
@@ -81,7 +81,8 @@ Clef_item::do_add_processing ()
 Molecule*
 Clef_item::do_brew_molecule_p() const
 {
-  Molecule*output = new Molecule (lookup_l ()->clef (symbol_));
+  Molecule*output = new Molecule (lookup_l ()->afm_find (String ("clefs-" + symbol_)));
+
   return output;
 }