From 7ebfc941b84402debe41305ad330954a1d150136 Mon Sep 17 00:00:00 2001 From: Ingomar Wesp Date: Sat, 30 Oct 2010 17:19:00 +0000 Subject: [PATCH] Fix this regex so that it works in even if an empty base id is supplied (as pointed out by mommertz) svn path=/trunk/KDE/kdelibs/; revision=1191337 --- svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.cpp b/svg.cpp index ef0d5b51b..27abddf8a 100644 --- a/svg.cpp +++ b/svg.cpp @@ -82,7 +82,7 @@ bool SharedSvgRenderer::load( { { // Search the SVG to find and store all ids that contain size hints. const QString contentsAsString(QString::fromLatin1(contents)); - QRegExp idExpr("id\\s*=\\s*(['\"])(\\d+)-(\\d+)-(.+)\\1"); + QRegExp idExpr("id\\s*=\\s*(['\"])(\\d+)-(\\d+)-(.*)\\1"); idExpr.setMinimal(true); int pos = 0;