X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmark-engraver.cc;h=7db0a781cc8d993807ac51af519218ef0b48d42d;hb=cd8d9ca8ca583139e10e6e3579150a68fed700cd;hp=25b19bd18a607b2ae34e50e9c7e677242dbcb922;hpb=a1b73185eae2f07dfee3cfcac0a6f11a15075ffe;p=lilypond.git diff --git a/lily/mark-engraver.cc b/lily/mark-engraver.cc index 25b19bd18a..7db0a781cc 100644 --- a/lily/mark-engraver.cc +++ b/lily/mark-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2012 Jan Nieuwenhuizen + Copyright (C) 1998--2015 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -140,17 +140,11 @@ Mark_engraver::process_music () if (!scm_is_number (m)) m = get_property ("rehearsalMark"); - if (scm_integer_p (m) == SCM_BOOL_T - && scm_exact_p (m) == SCM_BOOL_T) + if (scm_is_number (m)) { - int mark_count = scm_to_int (m); - mark_count++; - context ()->set_property ("rehearsalMark", - scm_from_int (mark_count)); + context ()->set_property ("rehearsalMark", scm_oneplus (m)); + m = scm_call_2 (proc, m, context ()->self_scm ()); } - - if (scm_is_number (m)) - m = scm_call_2 (proc, m, context ()->self_scm ()); else /* FIXME: constant error message. */ warning (_ ("rehearsalMark must have integer value"));