Browse Source

Merge pull request #1300 in DESIGN/design from ~ZHENG/c-design:feature/10.0 to feature/10.0

* commit '3cbb9f505e58e0fb34c8e005e6ee165513a16671':
  代码质量
  有些层级可能没配数据
research/11.0
zheng 5 years ago
parent
commit
6504be5660
  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