gvSIG bugs #690
NumberFormatException when changing the units of paper in the layout properties
Status: | New | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | |||
Assignee: | - | |||
Category: | - | |||
Target version: | - | |||
Severity: | Add-on name: | Unknown | ||
gvSIG version: | 1.11.0 | Add-on version: | ||
gvSIG build: | 1305 | Add-on build: | ||
Operative System: | Add-on resolve version: | |||
Keywords: | Add-on resolve build: | |||
Has patch: | No |
Description
Test 4.1.6
This happens in 1.11 and 1.12
DEBUG AWT-EventQueue-1 com.iver.andami.messages.NotificationManager - java.lang.NumberFormatException: multiple points
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1082)
at java.lang.Double.valueOf(Double.java:475)
at com.iver.cit.gvsig.project.documents.layout.gui.dialogs.FConfigLayoutDialog.obtainArea(FConfigLayoutDialog.java:880)
at com.iver.cit.gvsig.project.documents.layout.gui.dialogs.FConfigLayoutDialog.access$20(FConfigLayoutDialog.java:872)
at com.iver.cit.gvsig.project.documents.layout.gui.dialogs.FConfigLayoutDialog$5.actionPerformed(FConfigLayoutDialog.java:688)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
The trouble here is that the app is not taken into account the regional settings of the user. App is ignoring if the user use '.' or ',' to set miles or decimal separator and replacing always ',' for '.', what makes the string to number parser crash.
It can be easy solve catching the exception, but there is un underground problem here, that it's better to solve instead of apply a workaround patch.
History
#1 Updated by Francisco Puga about 12 years ago
It only happens when margins are enable.
After the error in win7 there are renderization troubles.
If we set in grid size a value it always return to 0.25 if the size or orientation of the paper is changed
(all those error happens also in 1.11)
#2 Updated by Álvaro Anguix over 10 years ago
- Project changed from Application: gvSIG desktop to | gvSIG desktop 1