diff options
Diffstat (limited to 'src/org')
-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; |