summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2013-11-16 16:09:45 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-16 16:09:45 +0100
commitfb2bb6ba87af8599830bb004f6e2cf82a92d1f28 (patch)
tree099d6e105b155213c846aad2635facee25550c5f
parentb9435199b33506f866bedc0b864141eef52ac9dc (diff)
downloadtdegraphics-fb2bb6ba87af8599830bb004f6e2cf82a92d1f28.tar.gz
tdegraphics-fb2bb6ba87af8599830bb004f6e2cf82a92d1f28.zip
Fix ksvg deadlock with specifically formatted input files
This resolves Bug 1418
-rw-r--r--ksvg/impl/svgpathparser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksvg/impl/svgpathparser.cc b/ksvg/impl/svgpathparser.cc
index 27eb759c..87a03aca 100644
--- a/ksvg/impl/svgpathparser.cc
+++ b/ksvg/impl/svgpathparser.cc
@@ -368,7 +368,7 @@ SVGPathParser::parseSVG( const TQString &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')