From 65068e4ff9539001ece1ab6437e5d399c08da7cd Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Wed, 29 Jul 2020 18:26:19 +0300 Subject: [PATCH] Did not compile gitlab simantics/platform#569 Change-Id: Ib02460d0851178f50cf3d0ce910079fef2c5c4a8 --- .../src/org/simantics/scenegraph/ScenegraphUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.47.1