From 1cde9a356ac7672569fbfca3f5e6d7b00b34cf5c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 16 Mar 2008 00:36:38 +0000 Subject: [PATCH] Fix [ 1759771 ] Parse exception when you enter ".." in a numeric field Accepted solution from arboleda --- client/src/org/compiere/grid/ed/VNumber.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/org/compiere/grid/ed/VNumber.java b/client/src/org/compiere/grid/ed/VNumber.java index 0ac2960f19..c9c6af1800 100644 --- a/client/src/org/compiere/grid/ed/VNumber.java +++ b/client/src/org/compiere/grid/ed/VNumber.java @@ -360,6 +360,11 @@ public final class VNumber extends JComponent } if (value.equals(".") || value.equals(",") || value.equals("-")) value = "0"; + // arboleda - solve bug [ 1759771 ] Parse exception when you enter ".." in a numeric field + if (value.equals("..")) { + value = "0"; + m_text.setText("."); + } try { Number number = m_format.parse(value);