From 0605ccfcfdef6131eb971d729b5021ebc7aaa8ed Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Mon, 29 Dec 2003 20:50:41 +0000 Subject: [PATCH] Bug #25804: Fix of ClassCastException error occuring while using (unimplemented) bidi-override. Patch by Finn Bock. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197074 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/AddLMVisitor.java | 2 +- src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java index cf924d700..908537d05 100644 --- a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java +++ b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java @@ -251,7 +251,7 @@ public class AddLMVisitor implements FOTreeVisitor { for (int count = childList.size() - 1; count >= 0; count--) { LayoutProcessor lm = (LayoutProcessor) childList.get(count); if (lm.generatesInlineAreas()) { - LayoutProcessor blm = new BidiLayoutManager((LeafNodeLayoutManager) lm); + LayoutProcessor blm = new BidiLayoutManager((InlineStackingLayoutManager) lm); blm.setFObj(node); currentLMList.add(blm); } else { diff --git a/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java index d8bbe2b77..d5c9aea31 100644 --- a/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java @@ -65,7 +65,7 @@ class BidiLayoutManager extends LeafNodeLayoutManager { private List children; - BidiLayoutManager(LeafNodeLayoutManager cLM) { + BidiLayoutManager(InlineStackingLayoutManager cLM) { children = new ArrayList(); /* for (int count = cLM.size() - 1; count >= 0; count--) { -- 2.39.5