From b1e947efe8ac8299a586a1a5d49faccbd352cb39 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Thu, 10 Mar 2005 23:41:53 +0000 Subject: Minor code nitpick. 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/java/org/apache/fop') 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(); } -- cgit v1.2.3