mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
renderer: Fix loader logic for mimetype check
Fixes the logic of the mimetype check before trying to load with the given mimetype.
This commit is contained in:
parent
0c09580cd4
commit
912752906c
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ LoadModule* LoaderMgr::loader(const char* data, uint32_t size, const char* mimeT
|
|||
}
|
||||
|
||||
//Try with the given MimeType
|
||||
if (!mimeType) {
|
||||
if (mimeType) {
|
||||
if (auto loader = _findByType(mimeType)) {
|
||||
if (loader->open(data, size, rpath, copy)) {
|
||||
if (allowCache) {
|
||||
|
|
Loading…
Add table
Reference in a new issue