From eb57915dec9bcd907e495595efac60dbf3579ad8 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Mon, 30 Jul 2001 07:58:39 +0000 Subject: [PATCH] fixed compile error I was supposed to be fixing a class cast exception just go with a warning for now. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194378 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/Character.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/fo/flow/Character.java b/src/org/apache/fop/fo/flow/Character.java index 7dd566884..a9a7c3c83 100644 --- a/src/org/apache/fop/fo/flow/Character.java +++ b/src/org/apache/fop/fo/flow/Character.java @@ -56,7 +56,11 @@ public class Character extends FObj { public Status layout(Area area) throws FOPException { - AreaContainer blockArea; + BlockArea blockArea; + if(!(area instanceof BlockArea)) { + MessageHandler.errorln("WARNING: currently Character can only be in a BlockArea"); + return new Status(Status.OK); + } blockArea = (BlockArea) area; boolean textDecoration; -- 2.39.5