summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-31 15:49:34 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-31 15:49:34 (GMT)
commit3fc42fad071d1fb05daf9270e1815c79d7407257 (patch)
tree745760f70965f8fad4e3e26f96a7ab0d06946384 /src
parentc40e1ea9039c3161ae201b10489a62feb2d77880 (diff)
downloadDoxygen-3fc42fad071d1fb05daf9270e1815c79d7407257.zip
Doxygen-3fc42fad071d1fb05daf9270e1815c79d7407257.tar.gz
Doxygen-3fc42fad071d1fb05daf9270e1815c79d7407257.tar.bz2
issue #6708 Invalid UTF-8 characters in hover title
Corrected test and setting of indexE (was working by accident).
Diffstat (limited to 'src')
-rw-r--r--src/dot.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 3853487..eb6c03c 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -397,8 +397,7 @@ static bool convertMapFile(FTextStream &t,const char *mapName,
{
QCString replBuf = replaceRef(buf,relPath,urlOnly,context);
int indexS = replBuf.find("id=\""), indexE;
- indexE=replBuf.find('"',indexS+4);
- if (indexS>=0 && (indexE=buf.find('"',indexS))!=-1)
+ if (indexS>=0 && (indexE=replBuf.find('"',indexS+4))!=-1)
{
t << replBuf.left(indexS-1) << replBuf.right(replBuf.length() - indexE - 1);
}