summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkitfox2014-10-30 00:17:19 +0100
committerkitfox2014-10-30 00:17:19 +0100
commit99fe93aa2675383636443ff6d5f0c07d1129751f (patch)
tree471e7b68655b7ae42fbea026b56d5f898f02eed1 /src
parentRemoving unused javax.crypto imports. (diff)
downloadsvg-salamander-core-99fe93aa2675383636443ff6d5f0c07d1129751f.tar.gz
svg-salamander-core-99fe93aa2675383636443ff6d5f0c07d1129751f.tar.xz
svg-salamander-core-99fe93aa2675383636443ff6d5f0c07d1129751f.zip
Fixing parsing for transform elements.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@188 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/kitfox/svg/SVGElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java
index 62c7ef3..f794f26 100644
--- a/src/main/java/com/kitfox/svg/SVGElement.java
+++ b/src/main/java/com/kitfox/svg/SVGElement.java
@@ -745,7 +745,7 @@ abstract public class SVGElement implements Serializable
static public AffineTransform parseSingleTransform(String val) throws SVGException
{
- final Matcher matchWord = Pattern.compile("[-.\\w]+").matcher("");
+ final Matcher matchWord = Pattern.compile("([a-zA-Z]+|-?\\d+(\\.\\d+)?|-?\\.\\d+)").matcher("");
AffineTransform retXform = new AffineTransform();