summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-31 19:25:57 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-31 19:25:57 (GMT)
commit979b00385f963a7433ee7ad87dba1102d8f63f3a (patch)
tree2cd94ccf3bf2bbcefabf0798f366a601f6069c03
parentfa3720970fe59d51f235a19cec87c4640c0dab80 (diff)
downloadDoxygen-979b00385f963a7433ee7ad87dba1102d8f63f3a.zip
Doxygen-979b00385f963a7433ee7ad87dba1102d8f63f3a.tar.gz
Doxygen-979b00385f963a7433ee7ad87dba1102d8f63f3a.tar.bz2
Fixed range and added code comment
-rw-r--r--src/dot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index eb6c03c..07a1a43 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -396,8 +396,9 @@ static bool convertMapFile(FTextStream &t,const char *mapName,
if (buf.left(5)=="<area")
{
QCString replBuf = replaceRef(buf,relPath,urlOnly,context);
+ // strip id="..." from replBuf since the id's are not needed and not unique.
int indexS = replBuf.find("id=\""), indexE;
- if (indexS>=0 && (indexE=replBuf.find('"',indexS+4))!=-1)
+ if (indexS>0 && (indexE=replBuf.find('"',indexS+4))!=-1)
{
t << replBuf.left(indexS-1) << replBuf.right(replBuf.length() - indexE - 1);
}