diff options
Diffstat (limited to 'src/svg/qsvggenerator.cpp')
-rw-r--r-- | src/svg/qsvggenerator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/svg/qsvggenerator.cpp b/src/svg/qsvggenerator.cpp index 8b9a9bd..424cc76 100644 --- a/src/svg/qsvggenerator.cpp +++ b/src/svg/qsvggenerator.cpp @@ -228,8 +228,7 @@ public: QTextStream str(&d_func()->defs, QIODevice::Append); str << "<mask id=\"" << maskId << "\" x=\"0\" y=\"0\" width=\"8\" height=\"8\" " << "stroke=\"none\" fill=\"#ffffff\" patternUnits=\"userSpaceOnUse\" >" << endl; - const auto &rects = reg.rects(); - for (const QRect &r : rects) + for (QRect r : reg) str << rct.arg(r.x()).arg(r.y()).arg(r.width()).arg(r.height()) << endl; str << QStringLiteral("</mask>") << endl << endl; d_func()->savedPatternMasks.append(maskId); |