You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by sp...@apache.org on 2010/11/18 15:32:35 UTC

svn commit: r1036467 - /xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java

Author: spepping
Date: Thu Nov 18 14:32:35 2010
New Revision: 1036467

URL: http://svn.apache.org/viewvc?rev=1036467&view=rev
Log:
Forgot to rename in one client

Modified:
    xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java?rev=1036467&r1=1036466&r2=1036467&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/svg/SVGSVGHandler.java Thu Nov 18 14:32:35 2010
@@ -38,7 +38,7 @@ public class SVGSVGHandler implements XM
     /** {@inheritDoc} */
     public void handleXML(RendererContext context,
                 org.w3c.dom.Document doc, String ns) throws Exception {
-        if (getNamespace().equals(ns)) {
+        if (getNameSpace().equals(ns)) {
             if (!(doc instanceof SVGDocument)) {
                 DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
                 doc = DOMUtilities.deepCloneDocument(doc, impl);
@@ -46,7 +46,7 @@ public class SVGSVGHandler implements XM
             SVGSVGElement svg = ((SVGDocument) doc).getRootElement();
             SVGDocument targetDoc = (SVGDocument)context.getProperty(SVG_DOCUMENT);
             SVGElement currentPageG = (SVGElement)context.getProperty(SVG_PAGE_G);
-            Element view = targetDoc.createElementNS(getNamespace(), "svg");
+            Element view = targetDoc.createElementNS(getNameSpace(), "svg");
             Node newsvg = targetDoc.importNode(svg, true);
             //view.setAttributeNS(null, "viewBox", "0 0 ");
             int xpos = ((Integer)context.getProperty(XPOS)).intValue();
@@ -57,7 +57,7 @@ public class SVGSVGHandler implements XM
             // this fixes a problem where the xmlns is repeated sometimes
             Element ele = (Element) newsvg;
             ele.setAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns",
-                               getNamespace());
+                               getNameSpace());
             if (ele.hasAttributeNS(null, "xmlns")) {
                 ele.removeAttributeNS(null, "xmlns");
             }
@@ -74,7 +74,7 @@ public class SVGSVGHandler implements XM
     }
 
     /** {@inheritDoc} */
-    public String getNamespace() {
+    public String getNameSpace() {
         return SVGRenderer.MIME_TYPE;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org