diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-02-05 21:05:27 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-02-05 21:05:27 (GMT) |
commit | 5bfda3d4c1158e5429349a2698339650dcfbbe88 (patch) | |
tree | 9b07ef4cf676b79e177c5695e01e7d83c8cd6ffc | |
parent | 1d4f37cb13a75ca8bdc49be3558438104e7eef19 (diff) | |
parent | dd0d738683029f80a42b6673e0b1b1228bebfce3 (diff) | |
download | Doxygen-5bfda3d4c1158e5429349a2698339650dcfbbe88.zip Doxygen-5bfda3d4c1158e5429349a2698339650dcfbbe88.tar.gz Doxygen-5bfda3d4c1158e5429349a2698339650dcfbbe88.tar.bz2 |
Merge pull request #296 from sloriot/fix_bgl_search
increase the size of l when result is modified
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index d6869d3..83f65a4 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7676,8 +7676,12 @@ QCString externalRef(const QCString &relPath,const QCString &ref,bool href) if (!relPath.isEmpty() && l>0 && result.at(0)=='.') { // relative path -> prepend relPath. result.prepend(relPath); + l+=relPath.length(); + } + if (!href){ + result.prepend("doxygen=\""+ref+":"); + l+=10+ref.length(); } - if (!href) result.prepend("doxygen=\""+ref+":"); if (l>0 && result.at(l-1)!='/') result+='/'; if (!href) result.append("\" "); } |