diff --git a/components/fpspreadsheet/xlsxooxml.pas b/components/fpspreadsheet/xlsxooxml.pas index 6b46691c5..ea262480d 100755 --- a/components/fpspreadsheet/xlsxooxml.pas +++ b/components/fpspreadsheet/xlsxooxml.pas @@ -340,10 +340,10 @@ begin xf := TXFListData(FXfList.Items[XfIndex]); // Font - if xf.FontIndex = 1 then + if FWrittenByFPS and (xf.FontIndex = 1) then Include(ACell^.UsedFormattingFields, uffBold) else - if xf.FontIndex > 1 then + if xf.FontIndex > 0 then Include(ACell^.UsedFormattingFields, uffFont); ACell^.FontIndex := xf.FontIndex;