diff --git a/widgets/formattedtext/org.eclipse.nebula.widgets.formattedtext/src/org/eclipse/nebula/widgets/formattedtext/MaskFormatter.java b/widgets/formattedtext/org.eclipse.nebula.widgets.formattedtext/src/org/eclipse/nebula/widgets/formattedtext/MaskFormatter.java index d26c3a412..81f7bb52e 100644 --- a/widgets/formattedtext/org.eclipse.nebula.widgets.formattedtext/src/org/eclipse/nebula/widgets/formattedtext/MaskFormatter.java +++ b/widgets/formattedtext/org.eclipse.nebula.widgets.formattedtext/src/org/eclipse/nebula/widgets/formattedtext/MaskFormatter.java @@ -150,7 +150,7 @@ public Object getValue() { for (int i = 0; i < editValue.length(); i++) { char c = editPattern.charAt(i); if (c == P_DIGIT || c == P_ALPHANUM || c == P_UPPERCASE - || c == P_LOWERCASE || c == P_UHEXDIGIT || c != P_LHEXDIGIT) { + || c == P_LOWERCASE || c == P_UHEXDIGIT || c == P_LHEXDIGIT) { value.append(editValue.charAt(i)); } }