From: Glen Mazza Date: Thu, 10 Mar 2005 23:41:53 +0000 (+0000) Subject: Minor code nitpick. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1e947efe8ac8299a586a1a5d49faccbd352cb39;p=xmlgraphics-fop.git Minor code nitpick. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198476 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java b/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java index c3e399f26..084fa4bec 100644 --- a/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java +++ b/src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java @@ -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(); }