[JW Lua] FCNoteEntry:MakeRest() resets FCNoteEntry.NoteDetailFlag

Jan Angermüller jan at angermueller.com
Tue Dec 27 18:00:33 CET 2016


Jari,

calling FCNoteEntry:MakeRest() resets the FCNoteEntry.NoteDetailFlag.

The NoteDetailFlag is for example set if the note/rest was changed in size.
Calling MakeRest() makes the rest use the original size again by 
unchecking the flag.
But the changed size is still stored "somewhere in background", so the 
following workaround seems to fix the problem - though I am not sure if 
it is really safe and doesn't mess up the document:

local tempnotedetailflag=noteentry.NoteDetailFlag --temporarily save the 
original flag
noteentry:MakeRest()
noteentry.NoteDetailFlag=tempnotedetailflag  --restore original flag

Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20161227/0ed3ff5f/attachment.htm>


More information about the JWLua mailing list