jeremias    02/05/19 09:39:08

  Modified:    src/org/apache/fop/image/analyser EPSReader.java
  Log:
  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 <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.5       +3 -2      xml-fop/src/org/apache/fop/image/analyser/EPSReader.java
  
  Index: EPSReader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/analyser/EPSReader.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EPSReader.java    25 Feb 2002 09:31:03 -0000      1.4
  +++ EPSReader.java    19 May 2002 16:39:08 -0000      1.5
  @@ -1,5 +1,5 @@
   /*
  - * $Id: EPSReader.java,v 1.4 2002/02/25 09:31:03 keiron Exp $
  + * $Id: EPSReader.java,v 1.5 2002/05/19 16:39:08 jeremias Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -176,7 +176,8 @@
           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];
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to