[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow specifying different alignment for grob and its parent (issue
From: |
janek . lilypond |
Subject: |
Re: Allow specifying different alignment for grob and its parent (issue 118950043 by address@hidden) |
Date: |
Fri, 01 Aug 2014 19:13:18 +0000 |
How do you like it now?
https://codereview.appspot.com/118950043/diff/100001/lily/self-alignment-interface.cc
File lily/self-alignment-interface.cc (right):
https://codereview.appspot.com/118950043/diff/100001/lily/self-alignment-interface.cc#newcode139
lily/self-alignment-interface.cc:139: if (robust_scm2string(par_align,
"") == "same-as-self-alignment")
On 2014/08/01 17:08:48, dak wrote:
That's too ugly to live. Shouldn't you be able to use a callback
here? Look at
grob::inherit-parent-property for inspiration, that's basically what
you need
here apart from looking up the parent.
Done. Thanks for the inspiration.
https://codereview.appspot.com/118950043/