]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Set value for characterValue variable in fo.flow.Character--needed for its OneCharIte...
authorGlen Mazza <gmazza@apache.org>
Sun, 3 Oct 2004 00:50:43 +0000 (00:50 +0000)
committerGlen Mazza <gmazza@apache.org>
Sun, 3 Oct 2004 00:50:43 +0000 (00:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197999 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/Character.java
src/java/org/apache/fop/fo/properties/CharacterProperty.java

index cf7847117a9bcfcb099eaea131fc28236a21eb62..19fc2f62c0f76bbf36297621b114300bbdd3b840 100644 (file)
@@ -76,6 +76,7 @@ public class Character extends FObj {
      */
     protected void addProperties(Attributes attlist) throws SAXParseException {
         super.addProperties(attlist);
+        characterValue = propertyList.get(PR_CHARACTER).getCharacter();
         getFOEventHandler().character(this);
     }
 
@@ -84,7 +85,7 @@ public class Character extends FObj {
      */
     public CharIterator charIterator() {
         return new OneCharIterator(characterValue);
-        // But what it the character is ignored due to white space handling?
+        // But what if the character is ignored due to white space handling?
     }
 
     /**
index ee785d96f4f430e0115e391683770505379daded..d5a91268121bd9518daeeceef925ec053c4c82da 100644 (file)
@@ -44,7 +44,7 @@ public class CharacterProperty extends Property {
             return new CharacterProperty(c);
         }
 
-    }    // end Charakter.Maker
+    }    // end Character.Maker
 
     private char character;