Adds a validation of min and max scale values.

Min can't be more than max anymore.
Fix a bug in SIF that made 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...