You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2001/03/30 19:18:31 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge SVGUtilities.java
tkormann 01/03/30 09:18:31
Modified: sources/org/apache/batik/bridge SVGUtilities.java
Log:
bug fix. negative values for filterRes is illegal.
Revision Changes Path
1.11 +6 -1 xml-batik/sources/org/apache/batik/bridge/SVGUtilities.java
Index: SVGUtilities.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGUtilities.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SVGUtilities.java 2001/03/26 14:12:18 1.10
+++ SVGUtilities.java 2001/03/30 17:18:30 1.11
@@ -50,7 +50,7 @@
* A collection of utility methods for SVG.
*
* @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
- * @version $Id: SVGUtilities.java,v 1.10 2001/03/26 14:12:18 tkormann Exp $
+ * @version $Id: SVGUtilities.java,v 1.11 2001/03/30 17:18:30 tkormann Exp $
*/
public abstract class SVGUtilities implements SVGConstants, ErrorConstants {
@@ -479,6 +479,11 @@
throw new BridgeException
(filterElement, ERR_ATTRIBUTE_VALUE_MALFORMED,
new Object[] {SVG_FILTER_RES_ATTRIBUTE, s, ex});
+ }
+ if (filterRes[0] < 0 || filterRes[1] < 0) {
+ throw new BridgeException
+ (filterElement, ERR_ATTRIBUTE_VALUE_MALFORMED,
+ new Object[] {SVG_FILTER_RES_ATTRIBUTE, s});
}
}
return filterRes;
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org