Browse Source

--- Merging r31941 into '.':
U rtl/objpas/classes/stringl.inc
--- Recording mergeinfo for merge of r31941 into '.':
U .

# revisions: 31941

git-svn-id: branches/fixes_3_0@31967 -

joost 9 years ago
parent
commit
fdab74d165
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/objpas/classes/stringl.inc

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

@@ -1391,6 +1391,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;