* Exit find if not sorted (bug id 28774)

git-svn-id: trunk@31941 -
This commit is contained in:
michael 2015-10-04 08:07:51 +00:00
parent 08817204a8
commit aa3a7b7eb8

View File

@ -1390,6 +1390,8 @@ var
CompareRes: PtrInt; CompareRes: PtrInt;
begin begin
Result := false; Result := false;
if Not Sorted then
exit;
// Use binary search. // Use binary search.
L := 0; L := 0;
R := Count - 1; R := Count - 1;