]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Minor code nitpick.
authorGlen Mazza <gmazza@apache.org>
Thu, 10 Mar 2005 23:41:53 +0000 (23:41 +0000)
committerGlen Mazza <gmazza@apache.org>
Thu, 10 Mar 2005 23:41:53 +0000 (23:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198476 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java

index c3e399f266de564cabb960424f9559c09675959a..084fa4bec784508d87147fcfc9192faea6680d6b 100644 (file)
@@ -62,11 +62,7 @@ public class LayoutMasterSet extends FObj {
      * @see org.apache.fop.fo.FONode#startOfNode
      */
     protected void startOfNode() throws FOPException {
-        if (parent.getName().equals("fo:root")) {
-            Root root = (Root)parent;
-            root.setLayoutMasterSet(this);
-        }
-
+        getRoot().setLayoutMasterSet(this);
         simplePageMasters = new java.util.HashMap();
         pageSequenceMasters = new java.util.HashMap();
     }