keiron      01/06/08 01:58:23

  Modified:    src/org/apache/fop/image/analyser SVGReader.java
  Log:
  gives it the correct size
  
  Revision  Changes    Path
  1.6       +3 -3      xml-fop/src/org/apache/fop/image/analyser/SVGReader.java
  
  Index: SVGReader.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/analyser/SVGReader.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SVGReader.java    2001/05/21 12:10:30     1.5
  +++ SVGReader.java    2001/06/08 08:58:22     1.6
  @@ -1,4 +1,4 @@
  -/* $Id: SVGReader.java,v 1.5 2001/05/21 12:10:30 keiron Exp $
  +/* $Id: SVGReader.java,v 1.6 2001/06/08 08:58:22 keiron 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."
  @@ -48,9 +48,9 @@
               // should check the stream contains text data
               SVGSVGElement svg = doc.getRootElement();
               this.width =
  -              (int) svg.getWidth().getBaseVal().getValue() * 1000;
  +              (int) svg.getWidth().getBaseVal().getValue();
               this.height =
  -              (int) svg.getHeight().getBaseVal().getValue() * 1000;
  +              (int) svg.getHeight().getBaseVal().getValue();
               return true;
           } catch (Exception e) {
               MessageHandler.errorln("ERROR LOADING EXTERNAL SVG: " + e.getMessage());
  
  
  

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

Reply via email to