aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2005-03-10 23:41:53 +0000
committerGlen Mazza <gmazza@apache.org>2005-03-10 23:41:53 +0000
commitb1e947efe8ac8299a586a1a5d49faccbd352cb39 (patch)
treea54a75e9cefdb5e60be77856296ed98340a636bb /src/java/org/apache/fop
parent33505a76647852984b0259e613bcfecd61bf2a16 (diff)
downloadxmlgraphics-fop-b1e947efe8ac8299a586a1a5d49faccbd352cb39.tar.gz
xmlgraphics-fop-b1e947efe8ac8299a586a1a5d49faccbd352cb39.zip
Minor code nitpick.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198476 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/fo/pagination/LayoutMasterSet.java6
1 files changed, 1 insertions, 5 deletions
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();
}