diff options
author | kitfox | 2014-06-27 16:49:25 +0200 |
---|---|---|
committer | kitfox | 2014-06-27 16:49:25 +0200 |
commit | e45ac98d19bee6c8af59f2a276e73bfacabc7220 (patch) | |
tree | a432e74864299476e73c11468f7d790695d6a384 /src | |
parent | Fixing SVGSALAMANDER-36. Default font weight for text is now normal. (diff) | |
download | svg-salamander-core-e45ac98d19bee6c8af59f2a276e73bfacabc7220.tar.gz svg-salamander-core-e45ac98d19bee6c8af59f2a276e73bfacabc7220.tar.xz svg-salamander-core-e45ac98d19bee6c8af59f2a276e73bfacabc7220.zip |
Fixing SVGSALAMANDER-39. Viewport is now no longer set when rendering a diagram from within <use> tag.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@181 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/kitfox/svg/SVGDiagram.java | 2 | ||||
-rw-r--r-- | src/main/java/com/kitfox/svg/SVGRoot.java | 2 | ||||
-rw-r--r-- | src/main/java/com/kitfox/svg/Use.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGDiagram.java b/src/main/java/com/kitfox/svg/SVGDiagram.java index a6942b7..3a89075 100644 --- a/src/main/java/com/kitfox/svg/SVGDiagram.java +++ b/src/main/java/com/kitfox/svg/SVGDiagram.java @@ -102,7 +102,7 @@ public class SVGDiagram implements Serializable */
public void render(Graphics2D g) throws SVGException
{
- root.render(g);
+ root.renderToViewport(g);
}
/**
diff --git a/src/main/java/com/kitfox/svg/SVGRoot.java b/src/main/java/com/kitfox/svg/SVGRoot.java index a4ccfb0..89a772e 100644 --- a/src/main/java/com/kitfox/svg/SVGRoot.java +++ b/src/main/java/com/kitfox/svg/SVGRoot.java @@ -258,7 +258,7 @@ public class SVGRoot extends Group // }
}
- public void render(Graphics2D g) throws SVGException
+ public void renderToViewport(Graphics2D g) throws SVGException
{
prepareViewport();
diff --git a/src/main/java/com/kitfox/svg/Use.java b/src/main/java/com/kitfox/svg/Use.java index f217b88..4219c6e 100644 --- a/src/main/java/com/kitfox/svg/Use.java +++ b/src/main/java/com/kitfox/svg/Use.java @@ -123,7 +123,7 @@ public class Use extends ShapeElement return;
}
- RenderableElement rendEle = (RenderableElement) ref;
+ RenderableElement rendEle = (RenderableElement)ref;
rendEle.pushParentContext(this);
rendEle.render(g);
rendEle.popParentContext();
|