diff options
author | Keiron Liddle <keiron@apache.org> | 2001-07-30 07:58:39 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-07-30 07:58:39 +0000 |
commit | eb57915dec9bcd907e495595efac60dbf3579ad8 (patch) | |
tree | 7905ba9fcadca89c0195c6aa9d3ab36e85ec1c81 /src/org/apache/fop/fo | |
parent | 49fbe4eb34b96d8e835420c7011b4e6dfc8ee62c (diff) | |
download | xmlgraphics-fop-eb57915dec9bcd907e495595efac60dbf3579ad8.tar.gz xmlgraphics-fop-eb57915dec9bcd907e495595efac60dbf3579ad8.zip |
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
Diffstat (limited to 'src/org/apache/fop/fo')
-rw-r--r-- | src/org/apache/fop/fo/flow/Character.java | 6 |
1 files changed, 5 insertions, 1 deletions
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; |