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"