From: Antti Villberg Date: Wed, 29 Jul 2020 15:26:19 +0000 (+0300) Subject: Did not compile X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F4350%2F1;p=simantics%2Fplatform.git Did not compile gitlab simantics/platform#569 Change-Id: Ib02460d0851178f50cf3d0ce910079fef2c5c4a8 --- diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ScenegraphUtils.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ScenegraphUtils.java index 8da7d1f7f..0c08c9d4c 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ScenegraphUtils.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/ScenegraphUtils.java @@ -145,13 +145,13 @@ public class ScenegraphUtils { public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, double scale) throws SVGException { BufferedImage bi = new BufferedImage(diagram); - bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0); + bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0); return bi.getBuffer(); } public static java.awt.image.BufferedImage paintSVG(SVGDiagram diagram, AffineTransform transform, float margin) throws SVGException { BufferedImage bi = new BufferedImage(diagram); - bi.paintToBuffer(transform, margin); + bi.paintToBuffer(transform, null, margin); return bi.getBuffer(); } @@ -166,7 +166,7 @@ public class ScenegraphUtils { double xScale = (double)maxDimension / bounds.getWidth(); double yScale = (double)maxDimension / bounds.getHeight(); double scale = Math.min(xScale, yScale); - bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), 0); + bi.paintToBuffer(AffineTransform.getScaleInstance(scale, scale), null, 0); return bi.getBuffer(); }