From d003ac5e0ae6b1785be2bf449c4688b2bf0df0f3 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Fri, 1 Jan 2016 17:04:25 +0100 Subject: [PATCH] Call super.paint before drawing fixes #66 --- src/main/java/eva2/gui/plot/FunctionArea.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eva2/gui/plot/FunctionArea.java b/src/main/java/eva2/gui/plot/FunctionArea.java index 100392e0..985c9afc 100644 --- a/src/main/java/eva2/gui/plot/FunctionArea.java +++ b/src/main/java/eva2/gui/plot/FunctionArea.java @@ -845,11 +845,11 @@ public class FunctionArea extends DArea implements Serializable { BufferedImage bufferedImage = new BufferedImage(theWidth, theHeight, BufferedImage.TYPE_INT_RGB); // Create a graphics contents on the buffered image Graphics2D g2D = bufferedImage.createGraphics(); + super.paint(g2D); if (legendBox != null && legend) { legendBox.paintIn(g2D, scaledBorder.getInnerRect(this)); } - super.paint(g2D); // Now put everything on the screen g.drawImage(bufferedImage, 0, 0, this); }