Browse Source

Merge pull request #184 in BA/design from ~XIAOHU/design:dev to dev

* commit 'a4682b6afb94dea211524a1f78dfd97ef2b53fd0':
  update
master
superman 8 years ago
parent
commit
e4c8043ae5
  1. 8
      designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java

8
designer_chart/src/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java

@ -17,6 +17,7 @@ import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.chart.ChartEditPane;
import com.fr.design.mainframe.chart.ChartHyperEditPane;
import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.general.FRLogger;
import com.fr.general.Inter;
import java.awt.*;
@ -47,7 +48,12 @@ public class ChartHyperPoplinkPane extends BasicBeanPane<ChartHyperPoplink> {
Chart chart = ChartTypeManager.getFirstChart();
if (chart != null){
cc.addChart(chart);
try {
cc.addChart((Chart)chart.clone());
} catch (CloneNotSupportedException e) {
FRLogger.getLogger().error(e.getMessage(), e);
}
}else {
cc.addChart(new Chart(new Bar2DPlot()));
}

Loading…
Cancel
Save