Browse Source

Merge pull request #1177 in BA/design from ~MOMEAK/design9.0:release/8.0 to release/8.0

* commit 'db3afdf2838ff3236950c9b7189d1e8e50aafa5e':
  REPORT-4345 设置了过滤的单元格下拉复制后,在右侧面板给其中一个单元格更改过滤设置,则所有单元格的过滤都会更改
master
superman 7 years ago
parent
commit
242783f630
  1. 7
      designer/src/com/fr/grid/IntelliElements.java

7
designer/src/com/fr/grid/IntelliElements.java

@ -194,7 +194,12 @@ public class IntelliElements {
TemplateCellElement newCellElement = new DefaultTemplateCellElement(colIndex, rowIndex);
applyStyle(newCellElement, sourceCellElement);//style
if (sourceCellElement.getValue() instanceof DSColumn) {
DSColumn dsColumn = (DSColumn) sourceCellElement.getValue();
DSColumn dsColumn = null;
try {
dsColumn = (DSColumn) ((DSColumn) sourceCellElement.getValue()).clone();
} catch (CloneNotSupportedException e) {
FRContext.getLogger().error(e.getMessage(), e);
}
newCellElement.setValue(dsColumn);
newCellElement.setCellExpandAttr(sourceCellElement.getCellExpandAttr());
} else if (sourceCellElement.getValue() instanceof Number) {

Loading…
Cancel
Save