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
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;