* Image: image scaling command is user unit aware ; fixes#6118
- if unitless value entered, InputField uses user choosen base unit
Before change, always used FC core base unit
Only applies to GUI user entered values, value changed programmatically still ...
... considered in core base unit if applied unitless
This adds the ability to enter things like 6 * 25.4 into the distance line edit widget during scaling operations in the image workbench. Can also enter something like math.pi * 3 or 2**3, etc. Basically, any legal python input can be used.
Using eval() is not considered a secure way of doing things, but in this context the user would be entering malicious code into his own computer. Also, what can the user do in eval() that he can't already do just by entering directly into the python console?