Avoid an AV in cases when main tab is "Data" on startup.

This commit is contained in:
Ansgar Becker
2010-06-09 22:24:43 +00:00
parent 743f9aff2a
commit 6b9dbf18ee

View File

@ -2407,9 +2407,9 @@ var
begin
// Load BLOB contents into preview area
Grid := ActiveGrid;
if not Assigned(Grid) then
Exit;
Results := GridResult(Grid);
if not Assigned(Results) then
Exit;
Screen.Cursor := crHourGlass;
try
ShowStatusMsg('Loading contents into image viewer ...');