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: [email protected]
For additional commands, e-mail: [email protected]