]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ottava-engraver.cc
Fix update-snippets.py '@lilypond' regexp
[lilypond.git] / lily / ottava-engraver.cc
index c1afcfed3c7dee3588a244a62e469530e05da739..f1042877963d6b3eba29f0973cdb9f2b7f90b843 100644 (file)
@@ -60,9 +60,8 @@ Ottava_spanner_engraver::process_music ()
          span_ = make_spanner ("OttavaBracket", SCM_EOL);
          span_->set_property ("text", ott);
 
-         SCM c0 (get_property ("middleCPosition"));
-         SCM oc0 (get_property ("originalMiddleCPosition"));
-         if (scm_less_p (oc0, c0) == SCM_BOOL_T)
+         SCM offset (get_property ("middleCOffset"));
+         if (robust_scm2double (offset, 0) > 0)
            span_->set_property ("direction", scm_from_int (DOWN));
        }
     }
@@ -130,12 +129,17 @@ Ottava_spanner_engraver::finalize ()
 ADD_ACKNOWLEDGER (Ottava_spanner_engraver, note_column);
 
 ADD_TRANSLATOR (Ottava_spanner_engraver,
-               /* doc */ "Create a text spanner when the ottavation property changes..",
-               /* create */ "OttavaBracket",
-               /* read */ "ottavation "
+               /* doc */
+               "Create a text spanner when the ottavation property changes.",
+
+               /* create */
+               "OttavaBracket ",
+
+               /* read */
+               "ottavation "
                "originalMiddleCPosition "
-               "currentMusicalColumn "
-               
-               ,
+               "currentMusicalColumn ",
                
-               /* write */ "");
+               /* write */
+               ""
+               );