fpspreadsheet: Add proper log error message when XLSX writer tries to write a conditional font format.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7565 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2020-07-26 10:09:04 +00:00
parent f53c6649f5
commit 4fc0ea6045

View File

@ -6256,9 +6256,10 @@ begin
{ font }
// TODO: Fix font handling: although correct in syntax something seems to be missing...
{
if (uffFont in AFormat^.UsedFormattingFields) then
begin
FWorkbook.AddErrorMsg('Writing conditional font not supported by XLSX writer.');
{
font := TsWorkbook(FWorkbook).GetFont(AFormat^.FontIndex);
if font <> nil then
begin
@ -6274,8 +6275,9 @@ begin
// Font name, font size, and style underline not supported
AppendToStream(AStream, '</font>');
end;
}
end;
}
{ background fill }
if (uffBackground in AFormat^.UsedFormattingFields) then
begin