Skip to content

Commit

Permalink
danfickle#23: Remove the debug rectangle from the svg output. The pos…
Browse files Browse the repository at this point in the history
…itioning is

now right, so it is no longer needed.
  • Loading branch information
rototor committed Feb 19, 2017
1 parent a32edb8 commit bf95dd8
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,9 @@ protected void transcode(Document svg, String uri, TranscoderOutput out) throws
this.userAgent = new OpenHtmlUserAgent(this.fontResolver);
super.transcode(svg, uri, out);

outputDevice.drawWithGraphics((float)x, (float)y, (float)width, (float)height, new OutputDeviceGraphicsDrawer() {
outputDevice.drawWithGraphics((float)x, (float)y, width, height, new OutputDeviceGraphicsDrawer() {
@Override
public void render(Graphics2D graphics2D) {
/*
* Debug rectangle, should only fill the black bordered space...
*/
graphics2D.setColor(new Color(128,255,128,128));
graphics2D.fillRect(0,0,(int)width,(int)height);

/*
* Do the real paint
*/
Expand Down

0 comments on commit bf95dd8

Please sign in to comment.