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
This commit is contained in:
parent
4e646b8526
commit
7ebfc941b8
2
svg.cpp
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user