Check for plugin minor version gives wrong output in case it is greater than SCRIPT_MINOR_VERSION

• Mar 17, 2012 - 08:55
Type
Plugins
Severity
3
Status
closed
Project

The code in trunk r5458 reads:

             else if (minorVersion > SCRIPT_MINOR_VERSION) {
                     qDebug("Your MuseScore version may be too old to run script <%s> (minor version %d > %d)\n",
                           qPrintable(pluginPath), minorVersion, SCRIPT_MAJOR_VERSION);

This is oviously wrong and really needs to be:

             else if (minorVersion > SCRIPT_MINOR_VERSION) {
                     qDebug("Your MuseScore version may be too old to run script <%s> (minor version %d > %d)\n",
                           qPrintable(pluginPath), minorVersion, SCRIPT_MINOR_VERSION);

Comments