|
From: | Joe Neeman |
Subject: | Re: \StaffGroup \consists "Mark_engraver" |
Date: | Sat, 21 Oct 2017 10:43:40 -0500 |
Thomas Morley <address@hidden> writes:
> 2017-10-19 16:15 GMT+02:00 Pierre-Luc Gauthier <address@hidden>:
>> Hi there,
>>
>> I'm trying to move the "Mark_engraver" from the \Score context to the
>> \StaffGroup context so as to have \mark \default be displayed at the
>> top of every new \StaffGroup.
+
+ // Only move this grob if it is a direct child of the system. We
+ // are not interested in moving marks from other staves to the top
+ // staff; we only want to move marks from the system to the top
+ // staff.
+ if (sys != me->get_parent (Y_AXIS))
+ return SCM_BOOL_F;
+
+ me->set_parent (top_staff, Y_AXIS);
+ me->flush_extent_cache (Y_AXIS);
+ Axis_group_interface::add_element (top_staff, me);
+ return SCM_BOOL_T;
+}
In particular, read that comment. That sounds very much like what the
code is supposed to do doesn't work. It may have worked at the time of
writing?
Joe, any idea?
[Prev in Thread] | Current Thread | [Next in Thread] |