diff --git a/components/fpspreadsheet/source/common/xlsxooxml.pas b/components/fpspreadsheet/source/common/xlsxooxml.pas index 1ac41613b..4133e32cd 100644 --- a/components/fpspreadsheet/source/common/xlsxooxml.pas +++ b/components/fpspreadsheet/source/common/xlsxooxml.pas @@ -6844,8 +6844,8 @@ begin WriteSheetData(FSSheets[FCurSheetNum], AWorksheet); WriteSheetProtection(FSSheets[FCurSheetNum], AWorksheet); WriteMergedCells(FSSheets[FCurSheetNum], AWorksheet); + WriteConditionalFormats(FSSheets[FCurSheetNum], AWorksheet); // Must be before hyperlinks!!! WriteHyperlinks(FSSheets[FCurSheetNum], AWorksheet, rId_FirstHyperlink); - WriteConditionalFormats(FSSheets[FCurSheetNum], AWorksheet); WritePrintOptions(FSSheets[FCurSheetNum], AWorksheet); WritePageMargins(FSSheets[FCurSheetNum], AWorksheet);