summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-04-05 12:48:47 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-04-05 12:48:47 (GMT)
commita3d574ecf12c71bc25579b38670f17ef663b82a6 (patch)
tree7921492d16358f77fb599e7ab2ec22459cbdace8 /src/docparser.cpp
parent16d025c8a08b485f5d43ade0986d716bd6aa06f8 (diff)
downloadDoxygen-a3d574ecf12c71bc25579b38670f17ef663b82a6.zip
Doxygen-a3d574ecf12c71bc25579b38670f17ef663b82a6.tar.gz
Doxygen-a3d574ecf12c71bc25579b38670f17ef663b82a6.tar.bz2
Image not seen as svg image
In case a svg image url has some decoration behind it, the image is not seen as a svg image. The decoration is taken away from the determination. Found by means of: ``` [![Build Status](https://api.travis-ci.com/ILIAS-eLearning/ILIAS.svg?branch=release_5-3)](https://travis-ci.com/ILIAS-eLearning/ILIAS) [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg)](https://php.net/) ```
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 1c8479b..d9b3e49 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -3019,7 +3019,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()