Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
public class SVGFileFormat extends FileFormat {

/** The instance of the registered {@link SVGRasterizer}. */
private static final SVGRasterizer RASTERIZER = ServiceLoader.load(SVGRasterizer.class).findFirst().orElse(null);
private static final SVGRasterizer RASTERIZER = ServiceLoader
.load(SVGRasterizer.class, SVGFileFormat.class.getClassLoader()).findFirst().orElse(null);

@Override
boolean isFileFormat(LEDataInputStream stream) throws IOException {
Expand Down
Loading