From 45fb82842733b0c4bdd6618c7a8d587ddb177a51 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Wed, 19 May 2021 17:58:08 +0000 Subject: [PATCH] fpspreadsheet: OOXML must write conditionalFormattings node before hyperlinks node (see forum https://forum.lazarus.freepascal.org/index.php/topic,54650.msg406200.html#msg406200). git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8038 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/source/common/xlsxooxml.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);