]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Endlich habe ich dem Insekt gefunden! Jetzt kann FOText das Kind von FONode werden...
authorGlen Mazza <gmazza@apache.org>
Wed, 13 Oct 2004 00:09:54 +0000 (00:09 +0000)
committerGlen Mazza <gmazza@apache.org>
Wed, 13 Oct 2004 00:09:54 +0000 (00:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198041 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOText.java
src/java/org/apache/fop/fo/flow/Block.java

index 3ccc2a93428298a977af11ab677f22268760f128..4bdc0c5b42b340da5a9fe6f64cc2d89ec74953ea 100644 (file)
@@ -38,7 +38,7 @@ import org.apache.fop.layoutmgr.TextLayoutManager;
  * @author unascribed
  * @author <a href="mailto:mark-fop@inomial.com">Mark Lillywhite</a>
  */
-public class FOText extends FObj {
+public class FOText extends FONode {
 
     /**
      * the character array containing the text
index 203a916e78b1f541a98be41ea4b6e57cdc97a440..034a7a685108b2700992904ecdfd14835c60fc5c 100644 (file)
@@ -29,9 +29,10 @@ import org.xml.sax.SAXParseException;
 // FOP
 import org.apache.fop.datatypes.ColorType;
 import org.apache.fop.fo.CharIterator;
-import org.apache.fop.fo.FONode;
 import org.apache.fop.fo.FObj;
 import org.apache.fop.fo.FObjMixed;
+import org.apache.fop.fo.FONode;
+import org.apache.fop.fo.FOText;
 import org.apache.fop.fo.PropertySets;
 import org.apache.fop.fo.RecursiveCharIterator;
 import org.apache.fop.layoutmgr.BlockLayoutManager;
@@ -170,8 +171,8 @@ public class Block extends FObjMixed {
         // Handle whitespace based on values of properties
         // Handle a sequence of inline-producing child nodes in
         // one pass
-        if (child instanceof FObj && ("fo:text".equals(child.getName()) 
-            || PropertySets.generatesInlineAreas(child.getNameId()))) {
+        if (child instanceof FOText
+            || PropertySets.generatesInlineAreas(child.getNameId())) {
                 if (firstInlineChild == null) {
                     firstInlineChild = child;
                 }