diff --git a/components/fpspreadsheet/source/common/fpspreadsheet.pas b/components/fpspreadsheet/source/common/fpspreadsheet.pas index 88a2205a5..74afca4d3 100644 --- a/components/fpspreadsheet/source/common/fpspreadsheet.pas +++ b/components/fpspreadsheet/source/common/fpspreadsheet.pas @@ -2013,7 +2013,7 @@ begin c := ACell^.Col; // Unmerge range if the cell is the base of a merged block - if IsMergeBase(ACell) then + if IsMergeBase(ACell) and not AKeepFormat then UnmergeCells(r, c); // Remove the comment if the cell has one