]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/local-key-item.cc
release: 1.3.18
[lilypond.git] / lily / local-key-item.cc
index cdc25c0b438af41d0e03e982cee0c65de9085106..f0bf3e57e650b3aacc551516d9ee6c88261711dd 100644 (file)
@@ -17,7 +17,6 @@
 
 Local_key_item::Local_key_item ()
 {
-  c0_position_i_ = 0;
 }
 
 void
@@ -90,8 +89,9 @@ Local_key_item::do_brew_molecule_p() const
        }
       
       lastoct = p.octave_i_;
-      Real dy =
-       (c0_position_i_ + p.notename_i_)
+
+      SCM c0 =  get_elt_property ("c0-position");
+      Real dy = (gh_number_p (c0) ? gh_scm2int (c0) : 0 + p.notename_i_)
        * note_distance;
       
       Molecule m (accidental (p.accidental_i_,