Skip to content

Commit

Permalink
Fix logic bug in SVG detection
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Dec 14, 2019
1 parent a47c456 commit 169545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 169545c

Please sign in to comment.