aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2014-09-08 12:07:42 +0000
committerGlenn Adams <gadams@apache.org>2014-09-08 12:07:42 +0000
commit09b63d72a07087696ba5be8540d7de4c3b40b226 (patch)
treef1e3ca7ab490d424e8ba8c20881b824d13c3c344 /src/java/org/apache
parent812ae2c1bcacdcb702b0ff8b9dd8ae171e865959 (diff)
downloadxmlgraphics-fop-09b63d72a07087696ba5be8540d7de4c3b40b226.tar.gz
xmlgraphics-fop-09b63d72a07087696ba5be8540d7de4c3b40b226.zip
FOP-2258: fix erroneous mirroring
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1623366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/complexscripts/bidi/InlineRun.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java b/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
index f8f67f953..94d7801f9 100644
--- a/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
+++ b/src/java/org/apache/fop/complexscripts/bidi/InlineRun.java
@@ -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).