preserve rich text in cell copy

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-12-24 09:53:07 +00:00
parent d6ab8e8444
commit 0a916cd3e7

View File

@ -218,7 +218,7 @@ public final class CellUtil {
}
break;
case STRING:
destCell.setCellValue(srcCell.getStringCellValue());
destCell.setCellValue(srcCell.getRichStringCellValue());
break;
case FORMULA:
destCell.setCellFormula(srcCell.getCellFormula());