From 4dd7df176f01cb37170fca7d76f789bc054e4fef Mon Sep 17 00:00:00 2001 From: psoares33 Date: Sun, 20 Jul 2008 18:48:46 +0000 Subject: [PATCH] V was only shown when the value wasn't empty AND a value wasn't required. I think it's sufficient to omit V when the field is empty; the extra constraint that the field may not be required is too strict. git-svn-id: svn://svn.code.sf.net/p/itextsharp/code/trunk@7 820d3149-562b-4f88-9aa4-a8e61a3485cf --- src/core/iTextSharp/text/pdf/TextField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/iTextSharp/text/pdf/TextField.cs b/src/core/iTextSharp/text/pdf/TextField.cs index 9fad754..e641139 100644 --- a/src/core/iTextSharp/text/pdf/TextField.cs +++ b/src/core/iTextSharp/text/pdf/TextField.cs @@ -370,7 +370,7 @@ namespace iTextSharp.text.pdf { field.MKRotation = rotation; if (fieldName != null) { field.FieldName = fieldName; - if ((options & REQUIRED) == 0 && !"".Equals(text)) + if (!"".Equals(text)) field.ValueAsString = text; if (defaultText != null) field.DefaultValueAsString = defaultText;