aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/Block.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-08-29 20:17:35 +0000
committerGlen Mazza <gmazza@apache.org>2004-08-29 20:17:35 +0000
commitb459b277210c10e3f58428dea12a07ccc7e4747d (patch)
treee024a2578d0dd252d7389ae6de23f7f7fc61d304 /src/java/org/apache/fop/fo/flow/Block.java
parent7113bcdff3a2f6eee6c58f3250f72c57699b0ddb (diff)
downloadxmlgraphics-fop-b459b277210c10e3f58428dea12a07ccc7e4747d.tar.gz
xmlgraphics-fop-b459b277210c10e3f58428dea12a07ccc7e4747d.zip
PR:
Obtained from: Submitted by: Reviewed by: Convenience method fobj.getPropLength() added to simplify some of the code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Block.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/Block.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java
index d46651e8b..f1fe8a345 100644
--- a/src/java/org/apache/fop/fo/flow/Block.java
+++ b/src/java/org/apache/fop/fo/flow/Block.java
@@ -116,18 +116,12 @@ public class Block extends FObjMixed {
this.alignLast =
this.propertyList.get(PR_TEXT_ALIGN_LAST).getEnum();
this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
- this.lineHeight = this.propertyList.get(
- PR_LINE_HEIGHT).getLength().getValue();
- this.startIndent = this.propertyList.get(
- PR_START_INDENT).getLength().getValue();
- this.endIndent = this.propertyList.get(
- PR_END_INDENT).getLength().getValue();
- this.spaceBefore = this.propertyList.get(
- PR_SPACE_BEFORE | CP_OPTIMUM).getLength().getValue();
- this.spaceAfter = this.propertyList.get(
- PR_SPACE_AFTER | CP_OPTIMUM).getLength().getValue();
- this.textIndent = this.propertyList.get(
- PR_TEXT_INDENT).getLength().getValue();
+ this.lineHeight = getPropLength(PR_LINE_HEIGHT);
+ this.startIndent = getPropLength(PR_START_INDENT);
+ this.endIndent = getPropLength(PR_END_INDENT);
+ this.spaceBefore = getPropLength(PR_SPACE_BEFORE | CP_OPTIMUM);
+ this.spaceAfter = getPropLength(PR_SPACE_AFTER | CP_OPTIMUM);
+ this.textIndent = getPropLength(PR_TEXT_INDENT);
this.keepWithNext =
this.propertyList.get(PR_KEEP_WITH_NEXT).getEnum();