Plugin: context of new Score() call affects resulting score

• Feb 21, 2010 - 11:40
Type
Plugins
Severity
S4 - Minor
Status
active
Project

I tested 3 cases:

  1. new Score() with 1 note and 1 staff text called in main plugin run
  2. new Score() with 1 note and 1 staff text called in a function called back by a dialogue box
  3. 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