From: luukkainen Date: Mon, 15 Sep 2014 12:26:50 +0000 (+0000) Subject: fixes #5311 X-Git-Tag: v1.29.0~177 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=25dbb053f6f27ed3acedabc3ddca1fe7dbf94cbd;p=simantics%2Fsysdyn.git fixes #5311 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30279 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/PiePlot.java b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/PiePlot.java index 9c4f1193..321c909a 100644 --- a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/PiePlot.java +++ b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/PiePlot.java @@ -49,7 +49,7 @@ public class PiePlot extends AbstractPlot { * @author Teemu Lempinen * */ - private class MyPiePlot extends org.jfree.chart.plot.PiePlot { + protected static class MyPiePlot extends org.jfree.chart.plot.PiePlot { private static final long serialVersionUID = -5917620061541212934L; @@ -89,10 +89,10 @@ public class PiePlot extends AbstractPlot { @SuppressWarnings({ "unchecked", "rawtypes" }) @Override protected void setPlotProperties(PlotProperties properties) { - if(!(plot instanceof MyPiePlot)) + if(!(plot instanceof org.jfree.chart.plot.PiePlot)) return; - final MyPiePlot piePlot = (MyPiePlot)plot; + final org.jfree.chart.plot.PiePlot piePlot = (org.jfree.chart.plot.PiePlot)plot; if(!properties.datasets.isEmpty()) { // We assume that a pie plot has only one dataset