diff options
author | kitfox | 2008-12-08 10:22:06 +0100 |
---|---|---|
committer | kitfox | 2008-12-08 10:22:06 +0100 |
commit | 7427a061b301fad622a7c9c6514c622a812c6279 (patch) | |
tree | f09c365dad467edf6ea95987db2818f3bb79cb29 /src/main | |
parent | Added fix for calculating screen units while running on a headless server (diff) | |
download | svg-salamander-core-7427a061b301fad622a7c9c6514c622a812c6279.tar.gz svg-salamander-core-7427a061b301fad622a7c9c6514c622a812c6279.tar.xz svg-salamander-core-7427a061b301fad622a7c9c6514c622a812c6279.zip |
Removing a lot of junk from svgSalamander.jar
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@58 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/kitfox/svg/SVGElement.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java index 4a330f4..fe50dd5 100644 --- a/src/main/java/com/kitfox/svg/SVGElement.java +++ b/src/main/java/com/kitfox/svg/SVGElement.java @@ -272,6 +272,14 @@ abstract public class SVGElement implements Serializable {
if (hasAttribute(name, attribType)) throw new SVGElementException(this, "Attribute " + name + "(" + AnimationElement.animationElementToString(attribType) + ") already exists");
+ //Alter layout for id attribute
+ if ("id".equals(name))
+ {
+ diagram.removeElement(this.id);
+ this.id = name;
+ diagram.setElement(this.id, this);
+ }
+
switch (attribType)
{
case AnimationElement.AT_CSS:
|