DarwinNE / FidoCadJ

FidoCadJ is a free user-friendly vector graphic editor for MacOSX, Linux, Windows and Android with a library of electronic symbols.
http://darwinne.github.io/FidoCadJ/
GNU General Public License v3.0
111 stars 40 forks source link

Clearer error messages for non-integer values instead of integer ones. #165

Closed dewi-ny-je closed 4 years ago

dewi-ny-je commented 4 years ago

On windows 10 I tried to change the grid from 5 to 2.5 mm. All the values appear with dot as decimal separator, and if I just click OK it works.

When I change the grid spacing from 5 to 2.5 I get the message "I cannot read one of the numbers entered". Same message when I use the comma as decimal separator. There may be an issue in the conversion of the decimals.

The system, outside FidocadJ, is set to use comma for decimals.

DarwinNE commented 4 years ago

Well, the problem is that coordinates in FidoCadJ are always integer numbers. Therefore, a snap grid can not be non integer.

I thought about increasing the resolution, but I fear the incompatibility with older versions.

I am slowly pacing towards introducing non-integer quantities here and there, but this does not come without problems.

dewi-ny-je commented 4 years ago

As workaround, a clearer error message would do. I really didn't know what the problem was.

DarwinNE commented 4 years ago

I agree!