From bab71c39fe9c537cb4630709efec82c72c237aff Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 8 Feb 2008 23:46:04 +0000 Subject: [PATCH] Fix [ 1889924 ] Runtime change of VFormat don't allow to clear --- client/src/org/compiere/grid/GridController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/org/compiere/grid/GridController.java b/client/src/org/compiere/grid/GridController.java index ffcdcdf357..008c20a2ff 100644 --- a/client/src/org/compiere/grid/GridController.java +++ b/client/src/org/compiere/grid/GridController.java @@ -939,7 +939,9 @@ public class GridController extends CPanel */ if (comp instanceof VString){ VString vs = (VString)comp; - if(!vs.getVFormat().equals(mField.getVFormat()) && mField.getVFormat() != null){ + if ((vs.getVFormat() != null && mField.getVFormat() == null) + || (vs.getVFormat() == null && mField.getVFormat() != null) + || (vs.getVFormat() != null && !vs.getVFormat().equals(mField.getVFormat()))) { vs.setVFormat(mField.getVFormat()); } }