]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bug #25804: Fix of ClassCastException error occuring while
authorGlen Mazza <gmazza@apache.org>
Mon, 29 Dec 2003 20:50:41 +0000 (20:50 +0000)
committerGlen Mazza <gmazza@apache.org>
Mon, 29 Dec 2003 20:50:41 +0000 (20:50 +0000)
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
src/java/org/apache/fop/layoutmgr/BidiLayoutManager.java

index cf924d70073c09693ccc173938c3fb143e8afe7f..908537d055764c32924ea63685be99e0c38720a3 100644 (file)
@@ -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 {
index d8bbe2b77d0d0e1f1eb532326b75c1ad34e4c836..d5c9aea315330aaccc4c0b25d823ec50bc4fd4cb 100644 (file)
@@ -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--) {