diff options
Diffstat (limited to 'tdecore/svgicons/ksvgiconpainter.cpp')
-rw-r--r-- | tdecore/svgicons/ksvgiconpainter.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tdecore/svgicons/ksvgiconpainter.cpp b/tdecore/svgicons/ksvgiconpainter.cpp index 72fc96d7c..ca781db15 100644 --- a/tdecore/svgicons/ksvgiconpainter.cpp +++ b/tdecore/svgicons/ksvgiconpainter.cpp @@ -2208,16 +2208,22 @@ void KSVGIconPainter::drawPath(const TQString &data, bool filled) break; } - 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'; + } else if(command == 'm') + { command = 'l'; + } } else + { command = *(ptr++); + } // Detect reflection points if(lastCommand != 'C' && lastCommand != 'c' && |