X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fottava-engraver.cc;h=5b07f61592ff964d53472b063d3781f614ebac2a;hb=0a0da41d935f7744e7ffd934034f25c40d4c59be;hp=f1042877963d6b3eba29f0973cdb9f2b7f90b843;hpb=9e80da91309faff260dacdf2e25ed91d183ebc5d;p=lilypond.git diff --git a/lily/ottava-engraver.cc b/lily/ottava-engraver.cc index f104287796..5b07f61592 100644 --- a/lily/ottava-engraver.cc +++ b/lily/ottava-engraver.cc @@ -1,9 +1,20 @@ /* - ottova-engraver.cc -- implement Ottava_spanner_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2000--2009 Han-Wen Nienhuys - (c) 2000--2007 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "protected-scm.hh" @@ -11,6 +22,7 @@ #include "side-position-interface.hh" #include "engraver.hh" #include "spanner.hh" +#include "text-interface.hh" #include "item.hh" class Ottava_spanner_engraver : public Engraver @@ -55,7 +67,7 @@ Ottava_spanner_engraver::process_music () { finished_ = span_; span_ = 0; - if (scm_is_string (ott)) + if (Text_interface::is_markup (ott)) { span_ = make_spanner ("OttavaBracket", SCM_EOL); span_->set_property ("text", ott);