Browse Source

* minor fix for problem of // with bin index chm files.

git-svn-id: trunk@14345 -
marco 15 years ago
parent
commit
68e2c0c33e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ide/wchmhwrap.pas

+ 4 - 1
ide/wchmhwrap.pas

@@ -160,7 +160,10 @@ begin
   for i:=0 to findex.items.count-1 do
   for i:=0 to findex.items.count-1 do
     begin
     begin
       item:=findex.items.item[i];
       item:=findex.items.item[i];
-      tli:=TopicLinks^.AddItem('/'+item.local);
+      if (length(item.local)>0) and (item.local[1]<>'/') then
+        tli:=TopicLinks^.AddItem('/'+item.local)
+      else
+        tli:=TopicLinks^.AddItem(item.local)
       TLI:=EncodeHTMLCtx(ID,TLI+1);
       TLI:=EncodeHTMLCtx(ID,TLI+1);
       IndexEntries^.Insert(NewIndexEntry(  FormatAlias(item.text),ID,TLI));
       IndexEntries^.Insert(NewIndexEntry(  FormatAlias(item.text),ID,TLI));
     end;
     end;