Browse Source

* Exit find if not sorted (bug id 28774)

git-svn-id: trunk@31941 -
michael 9 years ago
parent
commit
aa3a7b7eb8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/objpas/classes/stringl.inc

+ 2 - 0
rtl/objpas/classes/stringl.inc

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