Browse Source

Pull request #3188: REPORT-45880 使用富文本恢复普通文本后文本格式失效

Merge in DESIGN/design from ~YYMING/design:bugfix/10.0 to bugfix/10.0

* commit '9175e0258dd7e4a5f1e587dedd4e63f4212dbb61':
  REPORT-45880 使用富文本恢复普通文本后文本格式失效
  REPORT-45880 使用富文本恢复普通文本后文本格式失效
  REPORT-45880 使用富文本恢复普通文本后文本格式失效
bugfix/10.0
Yyming 4 years ago
parent
commit
d03b6ad138
  1. 12
      designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

12
designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

@ -573,6 +573,7 @@ public class CellSelection extends Selection {
for (int i = 0; i < removeElementList.size(); i++) {
CellElement element = removeElementList.get(i);
element.setValue(null);
setDefault(element);
}
break;
@ -588,6 +589,17 @@ public class CellSelection extends Selection {
return true;
}
//设置显示内容为default
private void setDefault(CellElement element) {
CellGUIAttr cellGUIAttr = element.getCellGUIAttr();
if (cellGUIAttr != null) {
cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false);
}
}
@Override
public int[] getSelectedColumns() {

Loading…
Cancel
Save