forked from qt-creator/qt-creator
QmlDesigner: Fix SVG paste action
Fix an issue with the SVG paste action where the SVG uses multiple classes in one class attribute. Change-Id: I332ae217cff6b2215c3f63b1d2433a54933f404a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
Henning Gründl
parent
6124bd4124
commit
6eec40264f
@@ -951,7 +951,7 @@ void flattenTransformsAndStyles(const QDomElement &element,
|
||||
const QStringList classes = classStr.split(" ", Qt::SkipEmptyParts);
|
||||
|
||||
for (const auto &c : classes)
|
||||
applyCSSRules(cssRules["." + e.attribute("class")], properties);
|
||||
applyCSSRules(cssRules["." + c], properties);
|
||||
}
|
||||
|
||||
if (e.hasAttribute("id")) {
|
||||
|
Reference in New Issue
Block a user