hillion 02/03/11 08:49:22
Modified: samples starfield.svg
sources/org/apache/batik/ext/awt
MultipleGradientPaintContext.java
Log:
Revision Changes Path
1.5 +2 -2 xml-batik/samples/starfield.svg
Index: starfield.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/starfield.svg,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- starfield.svg 7 Mar 2002 15:16:50 -0000 1.4
+++ starfield.svg 11 Mar 2002 16:49:22 -0000 1.5
@@ -14,7 +14,7 @@
<!-- A star field -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: starfield.svg,v 1.4 2002/03/07 15:16:50 hillion Exp $ -->
+<!-- @version $Id: starfield.svg,v 1.5 2002/03/11 16:49:22 hillion Exp $ -->
<!-- ========================================================================= -->
<svg xmlns="http://www.w3.org/2000/svg"
@@ -50,7 +50,7 @@
fill-opacity:0.3
}
.star {
- fill: url(#star-fill)
+ fill: white /*url(#star-fill)*/
}
.stop-c1 {
stop-color: white
1.12 +6 -2
xml-batik/sources/org/apache/batik/ext/awt/MultipleGradientPaintContext.java
Index: MultipleGradientPaintContext.java
===================================================================
RCS file:
/home/cvs/xml-batik/sources/org/apache/batik/ext/awt/MultipleGradientPaintContext.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- MultipleGradientPaintContext.java 2 Mar 2002 02:06:32 -0000 1.11
+++ MultipleGradientPaintContext.java 11 Mar 2002 16:49:22 -0000 1.12
@@ -23,7 +23,7 @@
*
* @author Nicholas Talian, Vincent Hardy, Jim Graham, Jerry Evans
* @author <a href="mailto:[EMAIL PROTECTED]">Vincent Hardy</a>
- * @version $Id: MultipleGradientPaintContext.java,v 1.11 2002/03/02 02:06:32
deweese Exp $
+ * @version $Id: MultipleGradientPaintContext.java,v 1.12 2002/03/11 16:49:22
hillion Exp $
*
*/
abstract class MultipleGradientPaintContext implements PaintContext {
@@ -1297,6 +1297,10 @@
/** Superclass getRaster... */
public final Raster getRaster(int x, int y, int w, int h) {
+ if (w == 0 || h == 0) {
+ return null;
+ }
+
//
// If working raster is big enough, reuse it. Otherwise,
// build a large enough new one.
@@ -1327,7 +1331,7 @@
model.isAlphaPremultiplied());
- return raster.createTranslatedChild(x, y);
+ return raster;
}
/** Subclasses should implement this. */
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]