Ignore:
Timestamp:
Aug 17, 2008, 8:23:09 PM (17 years ago)
Author:
RBRi
Message:

incorporate small fixes already done in head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.19_branch/NewView/HelpFile.pas

    r325 r329  
    681681var
    682682  i: longint;
     683  tmpIndex: String;
    683684begin
    684685  result := nil;
     
    686687  for i := 0 to _Index.Count - 1 do
    687688  begin
    688     if StrStartsWithIgnoringCase( SearchText, _Index.ValuePtrs[ i ] ^ ) then
     689    tmpIndex := _Index.ValuePtrs[i]^;
     690    if StrStartsWithIgnoringCase(tmpIndex, SearchText) then
    689691    begin
    690692      // found
     
    730732      if tmpLevel = tmpTopic.ContentsLevel then
    731733      begin
    732         if StrStartsWithIgnoringCase( SearchText, tmpTopic.TitlePtr ^ ) then
     734        if StrStartsWithIgnoringCase(tmpTopic.TitlePtr^, SearchText) then
    733735        begin
    734736          result := tmpTopic;
Note: See TracChangeset for help on using the changeset viewer.