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:
|New score set to dirty
|Added note shown
|Added text shown
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.