mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-25 00:00:03 -04:00
Encountered issue where an SVGImageReader instance that was used to read
multiple SVG images was only returning the first image. This commit includes a test case and a proposed fix.
This commit is contained in:
+2
-1
@@ -74,7 +74,7 @@ import java.util.Map;
|
||||
* @see <A href="http://www.mail-archive.com/batik-dev@xml.apache.org/msg00992.html">batik-dev</A>
|
||||
*/
|
||||
public class SVGImageReader extends ImageReaderBase {
|
||||
private Rasterizer rasterizer = new Rasterizer();
|
||||
private Rasterizer rasterizer = null;
|
||||
|
||||
/**
|
||||
* Creates an {@code SVGImageReader}.
|
||||
@@ -100,6 +100,7 @@ public class SVGImageReader extends ImageReaderBase {
|
||||
|
||||
if (imageInput != null) {
|
||||
TranscoderInput input = new TranscoderInput(IIOUtil.createStreamAdapter(imageInput));
|
||||
rasterizer = new Rasterizer();
|
||||
rasterizer.setInput(input);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user