diff options
author | Glen Mazza <gmazza@apache.org> | 2003-12-29 20:50:41 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-12-29 20:50:41 +0000 |
commit | 0605ccfcfdef6131eb971d729b5021ebc7aaa8ed (patch) | |
tree | c910bfb0a8e5fa5c8adc41c0469f0287528ff5e0 /src/java/org | |
parent | 0acea2967b501cfe9da8c9a82d01aefaf1bdf1c4 (diff) | |
download | xmlgraphics-fop-0605ccfcfdef6131eb971d729b5021ebc7aaa8ed.tar.gz xmlgraphics-fop-0605ccfcfdef6131eb971d729b5021ebc7aaa8ed.zip |
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
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AddLMVisitor.java | 2 | ||||
-rw-r--r-- | 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--) { |