Browse Source

REPORT-45880 使用富文本恢复普通文本后文本格式失效

bugfix/10.0
Yyming 4 years ago
parent
commit
9175e0258d
  1. 2
      designer-realize/src/main/java/com/fr/grid/selection/CellSelection.java

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

@ -592,11 +592,13 @@ public class CellSelection extends Selection {
//设置显示内容为default //设置显示内容为default
private void setDefault(CellElement element) { private void setDefault(CellElement element) {
CellGUIAttr cellGUIAttr = element.getCellGUIAttr(); CellGUIAttr cellGUIAttr = element.getCellGUIAttr();
if (cellGUIAttr != null) {
cellGUIAttr.setShowAsDefault(true); cellGUIAttr.setShowAsDefault(true);
cellGUIAttr.setShowAsHTML(false); cellGUIAttr.setShowAsHTML(false);
cellGUIAttr.setShowAsDownload(false); cellGUIAttr.setShowAsDownload(false);
cellGUIAttr.setShowAsImage(false); cellGUIAttr.setShowAsImage(false);
} }
}
@Override @Override

Loading…
Cancel
Save