keiron 01/07/30 00:58:39 Modified: src/org/apache/fop/fo/flow Character.java Log: fixed compile error I was supposed to be fixing a class cast exception just go with a warning for now. Revision Changes Path 1.8 +6 -2 xml-fop/src/org/apache/fop/fo/flow/Character.java Index: Character.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Character.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Character.java 2001/07/30 07:44:58 1.7 +++ Character.java 2001/07/30 07:58:39 1.8 @@ -1,4 +1,4 @@ -/* $Id: Character.java,v 1.7 2001/07/30 07:44:58 keiron Exp $ +/* $Id: Character.java,v 1.8 2001/07/30 07:58:39 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -56,7 +56,11 @@ 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; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]