bella       01/06/21 20:37:35

  Modified:    sources/org/apache/batik/bridge SVGTextElementBridge.java
  Log:
  fixed bug with empty text nodes
  
  Revision  Changes    Path
  1.26      +3 -1      
xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java
  
  Index: SVGTextElementBridge.java
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- SVGTextElementBridge.java 2001/06/12 23:49:36     1.25
  +++ SVGTextElementBridge.java 2001/06/22 03:37:33     1.26
  @@ -55,7 +55,7 @@
    * Bridge class for the <text> element.
    *
    * @author <a href="[EMAIL PROTECTED]>Bill Haneman</a>
  - * @version $Id: SVGTextElementBridge.java,v 1.25 2001/06/12 23:49:36 bella Exp $
  + * @version $Id: SVGTextElementBridge.java,v 1.26 2001/06/22 03:37:33 bella Exp $
    */
   public class SVGTextElementBridge extends AbstractSVGBridge
       implements GraphicsNodeBridge, ErrorConstants {
  @@ -491,6 +491,8 @@
           }
           if (sb.length() > 0) {
               as = new AttributedString(sb.toString(), m);
  +        } else {
  +            as = new AttributedString(" ", m);
           }
           return as;
       }
  
  
  

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

Reply via email to