diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-13 17:18:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-05-13 17:18:22 (GMT) |
commit | 546443fde85b99beb613c9eced1984a079bb171f (patch) | |
tree | d64fd7ab4798ad4388dbdd39e9edeee7b4eeb5a0 /src | |
parent | 8cd3470a3ad064dbb75f3d2fc6af5f69726040f3 (diff) | |
parent | a3d574ecf12c71bc25579b38670f17ef663b82a6 (diff) | |
download | Doxygen-546443fde85b99beb613c9eced1984a079bb171f.zip Doxygen-546443fde85b99beb613c9eced1984a079bb171f.tar.gz Doxygen-546443fde85b99beb613c9eced1984a079bb171f.tar.bz2 |
Merge branch 'feature/svg_image_determnation' of https://github.com/albert-github/doxygen into albert-github-feature/svg_image_determnation
Diffstat (limited to 'src')
-rw-r--r-- | src/docparser.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index ab5bd7d..71b2d78 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2919,7 +2919,21 @@ DocImage::DocImage(DocNode *parent,const HtmlAttribList &attribs,const QCString bool DocImage::isSVG() const { - return m_url.isEmpty() ? m_name.right(4)==".svg" : m_url.right(4)==".svg"; + QCString loc_name; + if (m_url.isEmpty()) + { + loc_name = m_name; + } + else + { + loc_name = m_url; + } + int fnd = loc_name.find('?'); + if (fnd != -1) + { + loc_name = loc_name.left(fnd); + } + return loc_name.right(4)==".svg"; } void DocImage::parse() |