lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange behaviour of relative_coordinate


From: Han-Wen Nienhuys
Subject: Re: strange behaviour of relative_coordinate
Date: Tue, 12 Mar 2013 23:11:28 -0700

On Mon, Mar 11, 2013 at 4:12 AM, Janek Warchoł <address@hidden> wrote:

> I'm a LyricText and I've caught the Stem of my parent NoteHead
> relative coordinate from stem to me is: 1.251178
> relative coordinate from me to stem is: 0.000000
>
> Is this intentional?
> If so, why?
> I expected that the second number would be -1.251178.

IIRC, the refp should be an ancestor of the grob you're asking for.
This means only one of

  obj->relative_coord(refp, X)
  refp->relative_coord(obj, X)

is valid.


-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]