Browse Source

Merge pull request #4 in ~WIM.ZHAI/xdesign from DESIGN/design:feature/10.0 to feature/10.0

* commit '6504be5660c897e287c5d344f16aef1710752b76':
  代码质量
  有些层级可能没配数据
research/11.0
Wim.Zhai 5 years ago
parent
commit
c5171b5bf7
  1. 4
      designer-chart/src/main/java/com/fr/design/chartx/data/drillMap/EachLayerDataDefinitionPane.java

4
designer-chart/src/main/java/com/fr/design/chartx/data/drillMap/EachLayerDataDefinitionPane.java

@ -83,11 +83,11 @@ public class EachLayerDataDefinitionPane extends MultiTabPane<DrillMapChartDataD
public void populateBean(DrillMapChartDataDefinition drillMapChartDataDefinition) {
List<AbstractDataDefinition> eachLayerDataDefinitionList = drillMapChartDataDefinition.getEachLayerDataDefinitionList();
if (eachLayerDataDefinitionList == null || eachLayerDataDefinitionList.size() == 0) {
if (eachLayerDataDefinitionList == null) {
return;
}
for (int i = 0, len = paneList.size(); i < len; i++) {
for (int i = 0, len = Math.min(paneList.size(), eachLayerDataDefinitionList.size()); i < len; i++) {
BasicPane basicPane = paneList.get(i);
if (basicPane instanceof SingleDataPane) {
((SingleDataPane) basicPane).populateBean(eachLayerDataDefinitionList.get(i));

Loading…
Cancel
Save