aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/Block.java
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2014-12-02 00:29:57 +0000
committerLuis Bernardo <lbernardo@apache.org>2014-12-02 00:29:57 +0000
commit16741be59821d79308d670ff7b61ec72702595e1 (patch)
tree7b5aa84fbb351a93105c3ca8d4fc939807674159 /src/java/org/apache/fop/area/Block.java
parent97e5ccb03a3990c94324bde7fa617a77566e1e62 (diff)
downloadxmlgraphics-fop-16741be59821d79308d670ff7b61ec72702595e1.tar.gz
xmlgraphics-fop-16741be59821d79308d670ff7b61ec72702595e1.zip
Merged branches/Temp_BasicSideFloat back to trunk.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1642793 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/Block.java')
-rw-r--r--src/java/org/apache/fop/area/Block.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/Block.java b/src/java/org/apache/fop/area/Block.java
index e04a5dc43..565146415 100644
--- a/src/java/org/apache/fop/area/Block.java
+++ b/src/java/org/apache/fop/area/Block.java
@@ -184,5 +184,21 @@ public class Block extends BlockParent {
return location;
}
+ // maybe this can be done in the parent?
+ public int getEffectiveIPD() {
+ int eIPD = super.getEffectiveIPD();
+ if (eIPD != 0) {
+ effectiveIPD = eIPD;
+ }
+ return eIPD;
+ }
+
+ // maybe this can be done in the parent?
+ public void activateEffectiveIPD() {
+ super.activateEffectiveIPD();
+ if (effectiveIPD != -1) {
+ ipd = effectiveIPD;
+ }
+ }
}