- span_ = new Spanner (get_property ("OttavaBracket"));
- span_->set_grob_property ("text", ott);
- announce_grob (span_, SCM_EOL);
-
- SCM c0 (get_property ("centralCPosition"));
- SCM oc0 (get_property ("originalCentralCPosition"));
- if (scm_less_p (oc0, c0) == SCM_BOOL_T)
- span_->set_grob_property ("direction", gh_int2scm (DOWN));
+ span_ = make_spanner ("OttavaBracket", SCM_EOL);
+ span_->set_property ("text", ott);
+
+ SCM offset (get_property ("middleCOffset"));
+ if (robust_scm2double (offset, 0) > 0)
+ span_->set_property ("direction", scm_from_int (DOWN));