Browse Source

* still add files that start with ., just not to FTS

git-svn-id: trunk@48013 -
(cherry picked from commit 1332915a102f8e7866820466706c371988d8d453)
marco 4 years ago
parent
commit
e8975d6be3
1 changed files with 9 additions and 2 deletions
  1. 9 2
      utils/fpdoc/dw_chm.pp

+ 9 - 2
utils/fpdoc/dw_chm.pp

@@ -152,11 +152,18 @@ end;
 
 procedure TFpDocChmWriter.FileAdded ( AStream: TStream;
   const AEntry: TFileEntryRec ) ;
+var FTsave : boolean;  
 begin
   // Exclude Full text index for files starting from the dot
   if Pos('.', AEntry.Name) <> 1 then
-    inherited FileAdded(AStream, AEntry);
-
+    inherited FileAdded(AStream, AEntry)
+  else
+    begin
+      FTsave:=FullTextSearch;
+      FullTextSearch:=False;
+      inherited FileAdded(AStream, AEntry);
+      FullTextSearch:=FTsave;
+    end;
 end;
 
 { TCHMHTMLWriter }