X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpartial-iterator.cc;h=2b1ff3eb5b531bca251b42fcf059e744ee98476a;hb=34a302a3f5717a4238ef294e67448b05088fba88;hp=2e38056e740ea464fa05235260e466d9a7bdd52e;hpb=a8d54f44df1fe4f89823f6b78364870ce51174dc;p=lilypond.git diff --git a/lily/partial-iterator.cc b/lily/partial-iterator.cc index 2e38056e74..2b1ff3eb5b 100644 --- a/lily/partial-iterator.cc +++ b/lily/partial-iterator.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2010 Neil Puttock + Copyright (C) 2010--2012 Neil Puttock LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,21 +28,21 @@ class Partial_iterator : public Simple_music_iterator { public: DECLARE_SCHEME_CALLBACK (constructor, ()); - protected: +protected: virtual void process (Moment); }; void Partial_iterator::process (Moment m) { - if (Duration *dur + if (Duration * dur = unsmob_duration (get_music ()->get_property ("partial-duration"))) { Context *ctx = get_outlet (); Moment now = ctx->now_mom (); if (now.main_part_ > Rational (0)) - get_music ()->origin ()-> - warning (_ ("trying to use \\partial after the start of a piece")); + get_music ()->origin ()-> + warning (_ ("trying to use \\partial after the start of a piece")); Moment length = Moment (dur->get_length ()); now = Moment (0, now.grace_part_); ctx->set_property ("measurePosition", (now - length).smobbed_copy ());