From ea07a82dbfd30c8ff48a526fd53c34c5defbb892 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Fri, 24 Jul 2020 20:54:10 +0000 Subject: [PATCH] fpspreadsheet: Fix CF background test case for ODS. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7562 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/tests/conditionalformattests.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/fpspreadsheet/tests/conditionalformattests.pas b/components/fpspreadsheet/tests/conditionalformattests.pas index b673212b4..f7869bb0a 100644 --- a/components/fpspreadsheet/tests/conditionalformattests.pas +++ b/components/fpspreadsheet/tests/conditionalformattests.pas @@ -1206,7 +1206,9 @@ var fmt: TsCellFormat; begin InitFormatRecord(fmt); - fmt.SetBackground(fsHatchDiag, scYellow, scRed); + // ODS supports only solid fill + //fmt.SetBackground(fsHatchDiag, scYellow, scRed); + fmt.SetBackground(fsSolidFill, scYellow, scYellow); TestWriteRead_CF_CellFmt(sfOpenDocument, cfcEqual, 5, fmt); end;