Commit eb506876 authored by Fabian Becker's avatar Fabian Becker
Browse files

Merge branch '66-plot-legend' into 'master'

Call super.paint before drawing

fixes #66

See merge request !14
parents 2a48844d d003ac5e
......@@ -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();
if (legendBox != null && legend) {
legendBox.paintIn(g2D, scaledBorder.getInnerRect(this));
// Now put everything on the screen
g.drawImage(bufferedImage, 0, 0, this);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment