summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/SVGRoot.java
diff options
context:
space:
mode:
authorkitfox2010-10-04 03:48:24 +0200
committerkitfox2010-10-04 03:48:24 +0200
commit772dcb67eb2cfee63de8f36988f332d8ad31e12c (patch)
treebc176112ee0a7eaa4cee36357709ce397e14d90e /src/main/java/com/kitfox/svg/SVGRoot.java
parentAdding <hkern> to source. (diff)
downloadsvg-salamander-core-772dcb67eb2cfee63de8f36988f332d8ad31e12c.tar.gz
svg-salamander-core-772dcb67eb2cfee63de8f36988f332d8ad31e12c.tar.xz
svg-salamander-core-772dcb67eb2cfee63de8f36988f332d8ad31e12c.zip
Fixing animation update for XML attributes.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@82 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/com/kitfox/svg/SVGRoot.java')
-rw-r--r--src/main/java/com/kitfox/svg/SVGRoot.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGRoot.java b/src/main/java/com/kitfox/svg/SVGRoot.java
index 7fea53a..daa211f 100644
--- a/src/main/java/com/kitfox/svg/SVGRoot.java
+++ b/src/main/java/com/kitfox/svg/SVGRoot.java
@@ -336,7 +336,7 @@ public class SVGRoot extends Group
if (getPres(sty.setName("x")))
{
NumberWithUnits newVal = sty.getNumberWithUnits();
- if (newVal != x)
+ if (!newVal.equals(x))
{
x = newVal;
shapeChange = true;
@@ -346,7 +346,7 @@ public class SVGRoot extends Group
if (getPres(sty.setName("y")))
{
NumberWithUnits newVal = sty.getNumberWithUnits();
- if (newVal != y)
+ if (!newVal.equals(y))
{
y = newVal;
shapeChange = true;
@@ -356,7 +356,7 @@ public class SVGRoot extends Group
if (getPres(sty.setName("width")))
{
NumberWithUnits newVal = sty.getNumberWithUnits();
- if (newVal != width)
+ if (!newVal.equals(width))
{
width = newVal;
shapeChange = true;
@@ -366,7 +366,7 @@ public class SVGRoot extends Group
if (getPres(sty.setName("height")))
{
NumberWithUnits newVal = sty.getNumberWithUnits();
- if (newVal != height)
+ if (!newVal.equals(height))
{
height = newVal;
shapeChange = true;
@@ -384,7 +384,12 @@ public class SVGRoot extends Group
}
}
- return changeState;
+ if (shapeChange)
+ {
+ build();
+ }
+
+ return changeState || shapeChange;
}
}