Browse Source

REPORT-28242 加个判断

feature/big-screen
hades 5 years ago
parent
commit
bb8323bc62
  1. 3
      designer-realize/src/main/java/com/fr/design/present/StyleArrayPane.java

3
designer-realize/src/main/java/com/fr/design/present/StyleArrayPane.java

@ -4,6 +4,7 @@ import com.fr.base.Style;
import com.fr.config.ServerPreferenceConfig;
import com.fr.config.StyleMap;
import com.fr.design.dialog.FineJOptionPane;
import com.fr.design.gui.NameInspector;
import com.fr.design.gui.controlpane.AbstractNameableCreator;
import com.fr.design.gui.controlpane.JListControlPane;
import com.fr.design.gui.controlpane.NameableCreator;
@ -35,7 +36,7 @@ public class StyleArrayPane extends JListControlPane {
super();
this.addModNameActionListener(new ModNameActionListener() {
public void nameModed(int index, String oldName, String newName) {
if (ComparatorUtils.equals(oldName, newName)) {
if (ComparatorUtils.equals(oldName, newName) || ComparatorUtils.equals(newName, NameInspector.ILLEGAL_NAME_HOLDER)) {
return;
}
namePermitted = true;

Loading…
Cancel
Save