diff --git a/source/main.pas b/source/main.pas index 862c2fe2..fa52fc9f 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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 ...');