diff --git a/0001-Allow-style-without-type-attribute.patch b/0001-Allow-style-without-type-attribute.patch new file mode 100644 index 0000000000000000000000000000000000000000..57bf271e85d568ec6ce016679923275e66662a0b --- /dev/null +++ b/0001-Allow-style-without-type-attribute.patch @@ -0,0 +1,76 @@ +From cb6fce016d88622cc361a9f609518db753502e46 Mon Sep 17 00:00:00 2001 +From: Chih-Hsuan Yen +Date: Wed, 23 Jan 2019 16:41:35 +0800 +Subject: [PATCH] Allow ", ++ "", ++ }; ++ const int COUNT = sizeof(svgs) / sizeof(svgs[0]); ++ QImage images[COUNT]; ++ QPainter p; ++ ++ for (int i = 0; i < COUNT; ++i) { ++ QByteArray data(svgs[i]); ++ QSvgRenderer renderer(data); ++ images[i] = QImage(50, 50, QImage::Format_ARGB32_Premultiplied); ++ images[i].fill(-1); ++ p.begin(&images[i]); ++ renderer.render(&p); ++ p.end(); ++ } ++ QCOMPARE(images[0], images[1]); ++} ++ + QTEST_MAIN(tst_QSvgRenderer) + #include "tst_qsvgrenderer.moc" +-- +2.18.1 + diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec index ec6a72e5ea4b7244a2faf4332fb04b808ba94567..f24a280e828dde9361c179556acbf352baca0293 100644 --- a/qt5-qtsvg.spec +++ b/qt5-qtsvg.spec @@ -1,11 +1,12 @@ Name: qt5-qtsvg Version: 5.11.1 -Release: 5 +Release: 6 Summary: Qt GUI toolkit for rendering and displaying SVG License: LGPLv2 with exceptions or GPLv3 with exceptions Url: http://www.qt.io Source0: https://download.qt.io/new_archive/qt/5.11/%{version}/submodules/qtsvg-everywhere-src-%{version}.tar.xz Patch0001: qtsvg-opensource-src-5.6.0-beta1-example-install.patch +Patch0002: 0001-Allow-style-without-type-attribute.patch BuildRequires: qt5-qtbase-devel >= %{version} pkgconfig(zlib) qt5-qtbase-private-devel %{?_qt5:Requires: %{_qt5} = %{_qt5_version}} @@ -60,6 +61,9 @@ popd %{_qt5_archdatadir}/mkspecs/modules/qt_lib_svg*.pri %changelog +* Wed Dec 08 2021 liuxinhao - 5.11.1-6 +- Allow style without type attribute + * Mon Sep 14 2020 liuweibo - 5.11.1-5 - Fix Source0