Browse Source

* try to resolve relative url first in current package before current module,
solves bug #17146

git-svn-id: trunk@15768 -

marco 15 years ago
parent
commit
1e7e80bfb3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      utils/fpdoc/dglobals.pp

+ 4 - 0
utils/fpdoc/dglobals.pp

@@ -984,6 +984,10 @@ begin
     Result := FindAbsoluteLink(ALinkDest)
     Result := FindAbsoluteLink(ALinkDest)
   else
   else
   begin
   begin
+    Result := ResolveLink(AModule, amodule.packagename + '.' + ALinkDest);
+    if Length(Result) > 0 then
+      exit;
+
     Result := ResolveLink(AModule, AModule.PathName + '.' + ALinkDest);
     Result := ResolveLink(AModule, AModule.PathName + '.' + ALinkDest);
     if Length(Result) > 0 then
     if Length(Result) > 0 then
       exit;
       exit;