From 3fc42fad071d1fb05daf9270e1815c79d7407257 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 31 Dec 2018 16:49:34 +0100 Subject: issue #6708 Invalid UTF-8 characters in hover title Corrected test and setting of indexE (was working by accident). --- src/dot.cpp | 3 +-- 1 file changed, 1 insertion(+), 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); } -- cgit v0.12