diff --git a/framesvg.cpp b/framesvg.cpp index 4f35be55e..49397236a 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -354,8 +354,8 @@ QPixmap FrameSvgPrivate::alphaMask(const QString &maskType) QString maskPrefix; - if (q->hasElement("mask-" + maskType + prefix + "center")) { - maskPrefix = "mask-" + maskType; + if (q->hasElement("mask-" + maskType + "-" + prefix + "center")) { + maskPrefix = "mask-" + QString("-") + maskType; } else if (q->hasElement("mask-" + prefix + "center")) { maskPrefix = "mask-"; }