[1.1] Internal variables for version return 0 (w/ patch)
Just as I said I no longer had pending patches, this is a new one!
The three global variables _majorVersion, _minorVersion, _updateVersion
all return 0. The variables are available to plugins and are probably used elsewhere too.
This is because the function int version()
in file mscore/mscore/utils.cpp expects a version string with 3 elements ("x.y.z"), while the current string only has 2 ("1.1").
The attached patch corrects this function to accept a variable number of elements (3, 2, 1, or none). Tested with plugins.
M.
Attachment | Size |
---|---|
ver11_utils_cpp_mscoreversion.patch | 1.03 KB |
Comments
I can't reproduce this in current branch. I think it has been fixed long time ago. Did you test before patching ?
The only thing I could find was http://mscore.svn.sourceforge.net/viewvc/mscore?view=revision&revision=… (for v1.1).
Hmmm... I did the change because I was getting the 0 value, but checking again now, the code works.
Sorry! Issue closed.
M.