cocoa: returning actual result for ClipboardGetFormats

git-svn-id: trunk@58731 -
This commit is contained in:
dmitry 2018-08-16 23:49:54 +00:00
parent e813dbc042
commit f2649a561f

View File

@ -241,10 +241,8 @@ var
tp : NSString;
begin
pb := Pasteboards[ClipboardType].pasteboard;
if not Assigned(pb) then begin
Result := false;
Exit;
end;
Result := Assigned(pb);
if not Result then Exit;
i := 0;
SetLength(List, pb.types.count);