Sorry, I guess I just don't have enough context to understand what you are
actually asking here then.  It is true that line calculations happen at
specific points in the code - most importantly, if I remember/understand
correctly, during cmdUpdateNotes(), which is called during the layout
process.  If you are asking if it is OK to be looking at specific "line"
values before a note has been laid out, i believe the answer is, "no".

On Sun, Aug 2, 2015 at 3:08 PM Jim Newton <[email protected]> wrote:

> Hi Marc, i'm not sure it is a bug, but rather simply the way it works.  It
> looks like addNote does not update _line, perhaps something else does.
> Rather _line gets initialized to its default value of 0, which happens to
> coincide with a particular line on the staff.
>
> I could build a test case, but I'm afraid the conclusion will be:  That's
> not a bug; it's just the way it works.
>
> BTW, how can I create a test case for a C++ api?  I could put it on a
> branch
> or a PR just for the purpose of sharing it.
>
>
>
>
>
>
> --
> View this message in context:
> http://dev-list.musescore.org/note-not-yet-ready-tp7579475p7579486.html
> Sent from the MuseScore Developer mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mscore-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to