Plugin: context of new Score() call affects resulting score
I tested 3 cases:
- new Score() with 1 note and 1 staff text called in main plugin run
- new Score() with 1 note and 1 staff text called in a function called back by a dialogue box
- new Score() in run and note + text created in dialogue callback function
and I noticed the following discrepancies:
case 1 | case 2 | case 3 | |
New score set to dirty | Y | N | Y |
Added note shown | Y | Y | N |
Added text shown | Y | Y | N |
These discrepancies apply to both ver. 0.9.5 and yesterday evening SVN code (there are other points, which apply only to SVN code and will be reported in a different post). I believe the expected result is, for all 3 cases, the results of case 2.
For reproducing the issue, the attached ZIP include 3 short .js implementing the three cases above.
I traced the code being executed (with Qt Creator under Windows XP) but I could not find any significant difference in the three cases.
Thanks,
M.
Attachment | Size |
---|---|
testnewscore.zip | 4.07 KB |
Comments
The supplied script doesn't run at all in MS 2.
I've (currently) modified it as below. This still doesn't entirely work, but it's better.