summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Loriot <sloriot@hosotte>2015-01-31 08:01:47 (GMT)
committerSebastien Loriot <sloriot@hosotte>2015-01-31 08:01:47 (GMT)
commitdd0d738683029f80a42b6673e0b1b1228bebfce3 (patch)
tree6c0df5296a738942f517f7ac554c8cf1206e74fb
parent025ed8dd7b58d0fa46b793ed7f3f853e82cda22e (diff)
downloadDoxygen-dd0d738683029f80a42b6673e0b1b1228bebfce3.zip
Doxygen-dd0d738683029f80a42b6673e0b1b1228bebfce3.tar.gz
Doxygen-dd0d738683029f80a42b6673e0b1b1228bebfce3.tar.bz2
increase the size of l when result is modified
-rw-r--r--src/util.cpp6
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("\" ");
}