aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/AbstractRenderer.java
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2014-09-08 21:52:29 +0000
committerGlenn Adams <gadams@apache.org>2014-09-08 21:52:29 +0000
commitabd59ee208c33281d7237cd7b592a467eeff454b (patch)
treef152bd65b0dcb46f4d13f37a718e3e1bd400f2eb /src/java/org/apache/fop/render/AbstractRenderer.java
parent18264aa01262fe49bd58ed4f5749db462d85af95 (diff)
downloadxmlgraphics-fop-abd59ee208c33281d7237cd7b592a467eeff454b.tar.gz
xmlgraphics-fop-abd59ee208c33281d7237cd7b592a467eeff454b.zip
FOP-2303: fix negative text indent in bidi context
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1623592 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/AbstractRenderer.java')
-rw-r--r--src/java/org/apache/fop/render/AbstractRenderer.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java
index 15a792db8..72a517efd 100644
--- a/src/java/org/apache/fop/render/AbstractRenderer.java
+++ b/src/java/org/apache/fop/render/AbstractRenderer.java
@@ -680,13 +680,6 @@ public abstract class AbstractRenderer
currentIPPosition += line.getStartIndent();
} else {
currentIPPosition += line.getEndIndent();
- // if line's content overflows line area, then
- // ensure that overflow is drawn (extends)
- // outside of left side of line area
- int overflow = computeInlinesOverflow(line);
- if (overflow > 0) {
- currentIPPosition -= overflow;
- }
}
} else {
currentIPPosition += line.getStartIndent();
@@ -698,16 +691,6 @@ public abstract class AbstractRenderer
currentBPPosition = saveBP;
}
- private int computeInlinesOverflow(LineArea line) {
- List children = line.getInlineAreas();
- int ipdConsumed = 0;
- for (int i = 0, l = children.size(); i < l; i++) {
- InlineArea inline = (InlineArea) children.get(i);
- ipdConsumed += inline.getIPD();
- }
- return ipdConsumed - line.getIPD();
- }
-
/**
* Render the given InlineArea.
* @param inlineArea inline area text to render