correct maskRequestedPrefix when no prefix is used

requestedprefix requires to not have the "-", don't fail anymore in
q->hasElementPrefix(frame->requestedPrefix) in
FrameSvgPrivate::generateBackground

BUG:377893
This commit is contained in:
Marco Martin 2017-03-22 14:01:28 +01:00
parent 28ad7879d3
commit 088a79d131

View File

@ -471,7 +471,7 @@ QPixmap FrameSvgPrivate::alphaMask()
} else {
// We are setting the prefix only temporary to generate
// the needed mask image
const QString maskRequestedPrefix = maskPrefix % requestedPrefix;
const QString maskRequestedPrefix = requestedPrefix.isEmpty() ? QStringLiteral("mask") : maskPrefix % requestedPrefix;
maskPrefix = maskPrefix % prefix;
if (!maskFrame) {