diff options
author | kitfox | 2014-10-30 00:17:19 +0100 |
---|---|---|
committer | kitfox | 2014-10-30 00:17:19 +0100 |
commit | 99fe93aa2675383636443ff6d5f0c07d1129751f (patch) | |
tree | 471e7b68655b7ae42fbea026b56d5f898f02eed1 /src | |
parent | Removing unused javax.crypto imports. (diff) | |
download | svg-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.java | 2 |
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();
|