summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-12-17 09:13:21 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-12-17 09:19:58 (GMT)
commit91cc7d1dabfd5f42db45bedefad78a63e63c4dc8 (patch)
treef67b4b6d3e89f9740e6c9f48f01c70f81681036d /src/svg
parent7d6af0213ab4f8797f98d0beb659fcf2f78a361b (diff)
downloadQt-91cc7d1dabfd5f42db45bedefad78a63e63c4dc8.zip
Qt-91cc7d1dabfd5f42db45bedefad78a63e63c4dc8.tar.gz
Qt-91cc7d1dabfd5f42db45bedefad78a63e63c4dc8.tar.bz2
Fixed parsing of svg paths.
Commit 928ee705 introduced a bug which affected paths with relative offsets. Task-number: QTBUG-6867 Reviewed-by: Trond
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/qsvghandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index b2619bf..ac220bd 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -1578,8 +1578,8 @@ static bool parsePathDataFast(const QStringRef &dataStr, QPainterPath &path)
count--;
break;
}
- x = x0 = num[0] + offsetX;
- y = y0 = num[1] + offsetY;
+ x = num[0] + offsetX;
+ y = num[1] + offsetY;
num += 2;
count -= 2;
path.lineTo(x, y);
@@ -1592,8 +1592,8 @@ static bool parsePathDataFast(const QStringRef &dataStr, QPainterPath &path)
count--;
break;
}
- x = x0 = num[0];
- y = y0 = num[1];
+ x = num[0];
+ y = num[1];
num += 2;
count -= 2;
path.lineTo(x, y);