summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-14 14:30:39 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-14 14:30:39 (GMT)
commit169545c73335cf4a45a2d7a21a40cc2fb17c3aaf (patch)
tree33a6c8dd4091bd905c006637a66f67aedfd0d37f /src
parenta47c456eadf1895654a3e8c4a6232e67db20371b (diff)
downloadDoxygen-169545c73335cf4a45a2d7a21a40cc2fb17c3aaf.zip
Doxygen-169545c73335cf4a45a2d7a21a40cc2fb17c3aaf.tar.gz
Doxygen-169545c73335cf4a45a2d7a21a40cc2fb17c3aaf.tar.bz2
Fix logic bug in SVG detection
Diffstat (limited to 'src')
-rw-r--r--src/docparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 1e43993..b1e2486 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -2894,7 +2894,7 @@ bool DocImage::isSVG() const
QCString locName = m_url.isEmpty() ? m_name : m_url;
int len = locName.length();
int fnd = locName.find('?'); // ignore part from ? until end
- if (fnd!=-1) fnd=len;
+ if (fnd==-1) fnd=len;
return fnd>=4 && locName.mid(fnd-4,4)==".svg";
}