Browse Source

REPORT-33459 启动后 设计器显示异常

feature/big-screen
hades 5 years ago
parent
commit
d24ec99f43
  1. 3
      designer-realize/src/main/java/com/fr/quickeditor/CellQuickEditor.java

3
designer-realize/src/main/java/com/fr/quickeditor/CellQuickEditor.java

@ -187,7 +187,8 @@ public abstract class CellQuickEditor extends QuickEditor<ElementCasePane> {
selectedIndex = comboBox.getSelectedIndex();
comboBox.setPopupVisible(false);
comboBox.repaint();
if (selectedIndex < cellInsertActions.length) {
// comboBox.getSelectedIndex()可能返回-1
if (selectedIndex != -1 && selectedIndex < cellInsertActions.length) {
cellInsertActions[selectedIndex].actionPerformed(e);
}
comboBox.setSelectedIndex(currentSelectedIndex);

Loading…
Cancel
Save