Browse Source

Pull request #1750: REPORT-33459 启动后 设计器显示异常

Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit 'd24ec99f43f2a617e17f22837e07d5c36a127ea6':
  REPORT-33459 启动后 设计器显示异常
feature/big-screen
Hades 5 years ago
parent
commit
853de08120
  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