]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
fixed compile error
authorKeiron Liddle <keiron@apache.org>
Mon, 30 Jul 2001 07:58:39 +0000 (07:58 +0000)
committerKeiron Liddle <keiron@apache.org>
Mon, 30 Jul 2001 07:58:39 +0000 (07:58 +0000)
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

index 7dd566884e69e4e3f8bb5582eb2fb6f4d045b6bc..a9a7c3c831f08fad97093e9455c67b41789d7ea1 100644 (file)
@@ -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;