fcl-report: Fix AV for rendering TFPReportGroupHeaderBand and use LiberationSans font as default for Windows

git-svn-id: trunk@38631 -
This commit is contained in:
maciej-izak 2018-03-27 11:28:32 +00:00
parent 436cd9efb3
commit c392e3804e

View File

@ -2238,7 +2238,7 @@ Function ReportExportManager : TFPReportExportManager;
{ this should probably be more configurable or flexible per platform }
Const
{$IFDEF UNIX}
{$IF Defined(UNIX) or Defined(WINDOWS)}
cDefaultFont = 'LiberationSans';
{$ELSE}
cDefaultFont = 'Helvetica';
@ -11613,6 +11613,9 @@ begin
// write(': ',TFPReportCustomGroupFooterBand(aBand).GroupHeader.GroupCondition);
//writeln(': Space = ', FormatFloat('#,##0.0', FSpaceLeft));
Result := False;
if not Assigned(aBand) then
Exit;
lHandledBands := TBandList.Create;
try
lBand := aBand;