X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob.cc;h=bdf338888f2c440200837c442e696a4ef50f676a;hb=87f20df2d2cc147c0fa8da266774b2bd8b3fa171;hp=882808180c6f2509cd7c807b5d22fed795f8239e;hpb=eac874ad80855c7f8372c7893394fd63371a7be1;p=lilypond.git diff --git a/lily/grob.cc b/lily/grob.cc index 882808180c..bdf338888f 100644 --- a/lily/grob.cc +++ b/lily/grob.cc @@ -191,6 +191,16 @@ Grob::get_system () const return 0; } +/* This version of get_system is more reliable than this->get_system () + before line-breaking has been done, at which point there is only + one system in the whole score and we can find it just by following + parent pointers. */ +System * +Grob::get_system(Grob *me) +{ + Grob *p = me->get_parent (X_AXIS); + return p ? get_system (p) : dynamic_cast(me); +} void Grob::handle_broken_dependencies () @@ -483,7 +493,7 @@ Grob::spanned_rank_interval () const } bool -Grob::pure_is_visible (int start, int end) const +Grob::pure_is_visible (int /* start */, int /* end */) const { return true; }