Adds a validation of min and max scale values.

Min can't be more than max anymore.
Fixes a bug in SIF that made it possible to validate an invalid input. If the
user clicked Ok with an invalid input and then used the cross of the
window to close it, the invalid input was saved...