bella 01/07/31 22:39:35
Modified: sources/org/apache/batik/gvt TextNode.java
Log:
fixed text bounding box problem
Revision Changes Path
1.12 +5 -2 xml-batik/sources/org/apache/batik/gvt/TextNode.java
Index: TextNode.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/TextNode.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- TextNode.java 2001/06/12 23:49:39 1.11
+++ TextNode.java 2001/08/01 05:39:35 1.12
@@ -31,7 +31,7 @@
* A graphics node that represents text.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Thierry Kormann</a>
- * @version $Id: TextNode.java,v 1.11 2001/06/12 23:49:39 bella Exp $
+ * @version $Id: TextNode.java,v 1.12 2001/08/01 05:39:35 bella Exp $
*/
public class TextNode extends AbstractGraphicsNode implements Selectable {
@@ -125,6 +125,8 @@
invalidateGeometryCache();
this.aci = newAci;
text = null;
+ textRuns = null;
+ chunkACIs = null;
}
/**
@@ -161,7 +163,7 @@
rc.getFontRenderContext());
} else {
// Don't cache if ACI is null
- System.out.println("ACI is null for "+this);
+ System.out.println("ACI is null for " + this);
return new Rectangle2D.Float(0, 0, 0, 0);
}
}
@@ -179,6 +181,7 @@
rc.getFontRenderContext());
} else {
// Don't cache if ACI is null
+ System.out.println("ACI is null for " + this);
return new Rectangle2D.Float(0, 0, 0, 0);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]