[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-cvs
Subject:    svn commit: r1623592 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java
From:       gadams () apache ! org
Date:       2014-09-08 21:52:29
Message-ID: 20140908215229.794312388999 () eris ! apache ! org
[Download RAW message or body]

Author: gadams
Date: Mon Sep  8 21:52:29 2014
New Revision: 1623592

URL: http://svn.apache.org/r1623592
Log:
FOP-2303: fix negative text indent in bidi context

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java?rev=1623592&r1=1623591&r2=1623592&view=diff
 ==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java \
                (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/AbstractRenderer.java Mon \
Sep  8 21:52:29 2014 @@ -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



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic