Explorar o código

Fixed chm search results for large chm search databases with > 2 node levels

git-svn-id: trunk@20493 -
andrew %!s(int64=13) %!d(string=hai) anos
pai
achega
b50bd10818
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/chm/src/chmfiftimain.pas

+ 1 - 0
packages/chm/src/chmfiftimain.pas

@@ -1030,6 +1030,7 @@ begin
      //WriteLn('At Node Level ', NodeLevel);
      //WriteLn('At Node Level ', NodeLevel);
      if ReadIndexNodeEntry(LastWord, NewWord, NewNodePosition) <> False then
      if ReadIndexNodeEntry(LastWord, NewWord, NewNodePosition) <> False then
      begin
      begin
+       LastWord := NewWord;
        //WriteLn('Found Index Entry: ', NewWord, ' Comparing to ', AWord);
        //WriteLn('Found Index Entry: ', NewWord, ' Comparing to ', AWord);
        if  ChmCompareText(NewWord, AWord) >= 0 then
        if  ChmCompareText(NewWord, AWord) >= 0 then
        begin
        begin