diff --git a/src/declarativeimports/core/framesvgitem.cpp b/src/declarativeimports/core/framesvgitem.cpp index 81f9e6376..8e6225f13 100644 --- a/src/declarativeimports/core/framesvgitem.cpp +++ b/src/declarativeimports/core/framesvgitem.cpp @@ -556,7 +556,13 @@ void FrameSvgItem::updateDevicePixelRatio() void FrameSvgItem::applyPrefixes() { - if (m_prefixes.isEmpty() || m_frameSvg->imagePath().isEmpty()) { + + if (m_frameSvg->imagePath().isEmpty()) { + return; + } + + if (m_prefixes.isEmpty()) { + m_frameSvg->setElementPrefix(QString()); return; }