* @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
// 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;
// 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;
}