From bfd487effe9c8e265982dd5cd2bcea6a510617d5 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Wed, 23 Sep 2020 23:11:33 +0200 Subject: [PATCH] Fix QRegularExpression pattern --- sources/factory/elementpicturefactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/factory/elementpicturefactory.cpp b/sources/factory/elementpicturefactory.cpp index 0c27a8690..8ce094e77 100644 --- a/sources/factory/elementpicturefactory.cpp +++ b/sources/factory/elementpicturefactory.cpp @@ -569,7 +569,7 @@ void ElementPictureFactory::setPainterStyle(const QDomElement &dom, QPainter &pa #pragma message("@TODO remove code for QT 5.14 or later") const QStringList styles = dom.attribute("style").split(";", Qt::SkipEmptyParts); #endif - QRegularExpression rx("^(?[a-z-]+): (?[a-z-]+)$"); + QRegularExpression rx("^(?[a-z-]+):(?[a-z-]+)$"); if (!rx.isValid()) { qWarning() <<"this is an error in the code"