Commit 18dfc4d8 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix loading SVG with omitted commands

SVG supports omitting repeating command names. When checking for the
next command we should make sure we parse a case when it starts not
with a digit, but with a '.' sign.

BUG:406124
parent a8857191
......@@ -313,7 +313,7 @@ void KoPathShapeLoaderPrivate::parseSvg(const QString &s, bool process)
lastCommand = command;
if (*ptr == '+' || *ptr == '-' || (*ptr >= '0' && *ptr <= '9')) {
if (*ptr == '+' || *ptr == '-' || *ptr == '.' || (*ptr >= '0' && *ptr <= '9')) {
// there are still coords in this command
if (command == 'M')
command = 'L';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment