fpspreadsheet: grid fix if FWorksheet not assigned from Aleksey Lagunov, issue #26521, thank you.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3371 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
bigchimp
2014-07-24 08:26:03 +00:00
parent 7f8e8fb312
commit 6606f62e79
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
fpspreadsheet.pas
Writes an spreadsheet document
Writes a spreadsheet document
AUTHORS: Felipe Monteiro de Carvalho
}

View File

@ -1175,6 +1175,7 @@ end;
}
procedure TsCustomWorksheetGrid.DrawFrozenPaneBorders(ARect: TRect);
begin
if FWorkSheet = nil then exit;
if (soHasFrozenPanes in FWorksheet.Options) then begin
Canvas.Pen.Style := psSolid;
Canvas.Pen.Color := clBlack;