xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gad...@apache.org
Subject svn commit: r1623366 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
Date Mon, 08 Sep 2014 12:07:42 GMT
Author: gadams
Date: Mon Sep  8 12:07:42 2014
New Revision: 1623366

URL: http://svn.apache.org/r1623366
Log:
FOP-2258: fix erroneous mirroring

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java?rev=1623366&r1=1623365&r2=1623366&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java Mon Sep
 8 12:07:42 2014
@@ -154,10 +154,10 @@ public class InlineRun {
     }
     /**
      * Determine if run needs mirroring.
-     * @return true if run is homogenous and odd (i.e., right to left)
+     * @return true if run is homogenous and (positive) odd (i.e., right to left)
      */
     public boolean maybeNeedsMirroring() {
-        return (minLevel == maxLevel) && ((minLevel & 1) != 0);
+        return (minLevel == maxLevel) && (minLevel > 0) && ((minLevel
& 1) != 0);
     }
     /**
      * Reverse run (by incrementing reversal count, not actually reversing).



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


Mime
View raw message