Browse Source

增加空判断

final/10.0
Qinghui.Liu 4 years ago
parent
commit
3fa0c1060b
  1. 4
      designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java

4
designer-chart/src/main/java/com/fr/van/chart/column/VanChartColumnPlotLabelDetailPane.java

@ -32,6 +32,10 @@ public class VanChartColumnPlotLabelDetailPane extends VanChartPlotLabelDetailPa
UIButtonGroup<Integer> content = dataLabelContentPane.getContent();
UIButtonGroup<Integer> orientation = getOrientation();
if (content == null || orientation == null) {
return;
}
if (content.getSelectedIndex() == VanChartTooltipContentPane.RICH_EDITOR_INDEX) {
orientation.setSelectedIndex(HORIZONTAL_INDEX);
orientation.setEnabled(false);

Loading…
Cancel
Save