[Regression] Cannot type Max. or Max. system Distance in many cases

• Jun 4, 2018 - 16:20
Reported version
2.2
Type
Graphical (UI)
Severity
S4 - Minor
Status
active
Project

#269238: Make sure min and max system distance don't surpass one another made it so the Min. system distance will always be less than the Max. system distance the Style->General->Page tab. One of the side effects is that you cannot type a Max. distance that starts with a 1 if you change you mind. To see this bug do the following from any score:

Set the Min. system distance to a number such as 6.0sp and the Max. system distance to 9.5sp.
Click OK
MuseScore happily makes the changes
Open the dialog and try to change the Max. system distance to 11.0sp. When you type the first 1, the Max. system distance is automatically changed to 6.0sp (or what ever the Min. distance is).

Through further testing I have determined that you don't even need to change the Min distance. If you try to change the Max distance from for say 15 to 12 by selecting the input box and type a 1, it will automatically be changed to the same as the Min distance.

Rather than allowing the user to make the changes and putting a check on it afterwards, MuseScore refuses to allow for the use of the keyboard. There is a workaround. You can, optionally, set the Max distance to (for example) 9.5sp, then use the arrows to change the value to any number greater than the Min. distance.

A similar thing happens if you attempt to change the Min. distance to a number larger than the Max. distance. You must change the Max. before you set the Min. to a number greater than the Max.

My expectation is that the Dialog will allow you to type anything you want, but then refuse to close if the values are illegal. So if you type 8.5sp for the Min. and 8.0sp for the Max. clicking OK should result in the 8.5sp being selected and preferably an informational dialog that says "Min. system distance must be less than Max. system distance."

On the subject of this dialog, I don't see a reason for the . after Min and Max in this dialog since these abbreviations are such a standard part of the English language that the . is not normally written after these words.


Comments

Title Cannot type Max. or Max. system Distance in many cases [Regression] Cannot type Max. or Max. system Distance in many cases

I forgot to put this as a regression.