]> source.dussan.org Git - poi.git/commitdiff
preserve rich text in cell copy
authorPJ Fanning <fanningpj@apache.org>
Fri, 24 Dec 2021 09:53:07 +0000 (09:53 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 24 Dec 2021 09:53:07 +0000 (09:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896344 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/ss/util/CellUtil.java

index 99d92c4750f1974650ecd90ca7abab823e10295e..ed468e1b84fa0f70b481897181b3d2fb0b40265e 100644 (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());