[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-dev
Subject: cvs commit: xml-batik/sources/org/apache/batik/gvt AbstractGraphicsNode.java
From: deweese () apache ! org
Date: 2002-05-29 22:38:04
[Download RAW message or body]
deweese 02/05/29 15:38:03
Modified: sources/org/apache/batik/gvt AbstractGraphicsNode.java
Log:
Fixed a null pointer exeption in some odd cases...
Revision Changes Path
1.42 +3 -1 xml-batik/sources/org/apache/batik/gvt/AbstractGraphicsNode.java
Index: AbstractGraphicsNode.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/AbstractGraphicsNode.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- AbstractGraphicsNode.java 29 May 2002 18:53:05 -0000 1.41
+++ AbstractGraphicsNode.java 29 May 2002 22:38:03 -0000 1.42
@@ -54,7 +54,7 @@
* @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
* @author <a href="mailto:etissandier@ilog.fr">Emmanuel Tissandier</a>
* @author <a href="mailto:Thomas.DeWeeese@Kodak.com">Thomas DeWeese</a>
- * @version $Id: AbstractGraphicsNode.java,v 1.41 2002/05/29 18:53:05 deweese Exp $
+ * @version $Id: AbstractGraphicsNode.java,v 1.42 2002/05/29 22:38:03 deweese Exp $
*/
public abstract class AbstractGraphicsNode implements GraphicsNode {
@@ -899,6 +899,8 @@
* relatively speaking.
*/
protected Rectangle2D normalizeRectangle(Rectangle2D bounds) {
+ if (bounds == null) return null;
+
if ((bounds.getWidth() < EPSILON)) {
if (bounds.getHeight() < EPSILON) {
AffineTransform gt = getGlobalTransform();
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic