pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1688665 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form: PDCheckbox.java PDRadioButton.java
Date Wed, 01 Jul 2015 14:59:54 GMT
Author: tilman
Date: Wed Jul  1 14:59:54 2015
New Revision: 1688665

URL: http://svn.apache.org/r1688665
Log:
PDFBOX-2849: default value for check boxes and radio buttons is "Off", not "OFF".

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDCheckbox.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDRadioButton.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDCheckbox.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDCheckbox.java?rev=1688665&r1=1688664&r2=1688665&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDCheckbox.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDCheckbox.java
Wed Jul  1 14:59:54 2015
@@ -126,7 +126,7 @@ public final class PDCheckbox extends PD
      */
     public void setValue(boolean value) throws IOException
     {
-        COSName name = value ? COSName.YES : COSName.OFF;
+        COSName name = value ? COSName.YES : COSName.Off;
         dictionary.setItem(COSName.V, name);
         
         // update the appearance state (AS)
@@ -143,7 +143,7 @@ public final class PDCheckbox extends PD
      */
     public void setDefaultValue(boolean value) throws IOException
     {
-        COSName name = value ? COSName.YES : COSName.OFF;
+        COSName name = value ? COSName.YES : COSName.Off;
         dictionary.setItem(COSName.DV, name);
     }
 

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDRadioButton.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDRadioButton.java?rev=1688665&r1=1688664&r2=1688665&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDRadioButton.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDRadioButton.java
Wed Jul  1 14:59:54 2015
@@ -192,7 +192,7 @@ public final class PDRadioButton extends
             }
             else
             {
-                widget.getCOSObject().setItem(COSName.AS, COSName.OFF);
+                widget.getCOSObject().setItem(COSName.AS, COSName.Off);
             }
         }
         applyChange();



Mime
View raw message