Fix #3466: Crash happened when make some operation with decimal number in the Tab Size/Spaces field.

Fix for issue #3466 by not letting the unit be a float value, by making it an integer before saving it.