aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2002-05-19 16:39:08 +0000
committerJeremias Maerki <jeremias@apache.org>2002-05-19 16:39:08 +0000
commit99f5296c50e26f489d18ee35244de6bd6b62464a (patch)
treec4c1d4f4ff28b4ba413c737e9cef9c57e01cbc4d
parentb778b8dfdaff2e29ee3909a9f4c4026613d24e84 (diff)
downloadxmlgraphics-fop-99f5296c50e26f489d18ee35244de6bd6b62464a.tar.gz
xmlgraphics-fop-99f5296c50e26f489d18ee35244de6bd6b62464a.zip
Fixes a problem when EPS files have Bounding Boxes containing negative integers. (untested for redesign, but compiles and changes are equivalent.)
Submitted by: Claes Bergsten <claes.bergsten@tjgroup.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194829 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/image/analyser/EPSReader.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/image/analyser/EPSReader.java b/src/org/apache/fop/image/analyser/EPSReader.java
index 60a6c5624..a0060b58c 100644
--- a/src/org/apache/fop/image/analyser/EPSReader.java
+++ b/src/org/apache/fop/image/analyser/EPSReader.java
@@ -176,7 +176,8 @@ public class EPSReader implements ImageReader {
int nidx = idx;
while (nidx < data.epsFile.length &&
- (data.epsFile[nidx] >= 48 && data.epsFile[nidx] <= 57))
+ ((data.epsFile[nidx] >= 48 && data.epsFile[nidx] <= 57) ||
+ (data.epsFile[nidx] == 45)))
nidx++;
byte[] num = new byte[nidx - idx];