aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-07-30 07:58:39 +0000
committerKeiron Liddle <keiron@apache.org>2001-07-30 07:58:39 +0000
commiteb57915dec9bcd907e495595efac60dbf3579ad8 (patch)
tree7905ba9fcadca89c0195c6aa9d3ab36e85ec1c81 /src/org/apache/fop/fo
parent49fbe4eb34b96d8e835420c7011b4e6dfc8ee62c (diff)
downloadxmlgraphics-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.java6
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;