Skip to content

Commit

Permalink
Follow-up to previous commit: do not load resource using a class from…
Browse files Browse the repository at this point in the history
… a different package
  • Loading branch information
carlosame committed Jul 18, 2024
1 parent 767085a commit bface85
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
import java.io.IOException;
import java.io.InputStream;

import io.sf.carte.echosvg.ext.awt.image.codec.png.test.PNGEncoderTest;

/**
* This test validates drawImage conversions with profiled colors.
*
Expand All @@ -52,7 +50,7 @@ public class DrawImageICC implements Painter {
public void paint(Graphics2D g) {
// Load a profile
ICC_Profile prof;
try (InputStream iccStream = PNGEncoderTest.class.getResourceAsStream(
try (InputStream iccStream = DrawImageICC.class.getResourceAsStream(
"/io/sf/carte/echosvg/css/color/profiles/Display P3.icc")) {
prof = ICC_Profile.getInstance(iccStream);
} catch (IOException e) {
Expand Down

0 comments on commit bface85

Please sign in to comment.