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
master
psoares33 2008-07-20 18:48:46 +00:00
parent b5c4ee7a7b
commit 4dd7df176f
1 changed files with 1 additions and 1 deletions

View File

@ -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;