[1.1] Internal variables for version return 0 (w/ patch)

• Jul 4, 2011 - 18:29
Type
Functional
Severity
S4 - Minor
Status
closed
Project

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

Status (old) patch (ready to commit) closed

Hmmm... I did the change because I was getting the 0 value, but checking again now, the code works.

Sorry! Issue closed.

M.