Author: cam
Date: Mon Feb 21 23:06:26 2011
New Revision: 1073181

URL: http://svn.apache.org/viewvc?rev=1073181&view=rev
Log:
Allow negative percentage values for startOffset on textPath.

Modified:
    xmlgraphics/batik/trunk/CHANGES
    
xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGTextPathElementBridge.java
    
xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java

Modified: xmlgraphics/batik/trunk/CHANGES
URL: 
http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/CHANGES?rev=1073181&r1=1073180&r2=1073181&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/CHANGES (original)
+++ xmlgraphics/batik/trunk/CHANGES Mon Feb 21 23:06:26 2011
@@ -68,6 +68,8 @@ Bug fixing is an on-going task, so it is
     with a unit.
   * Avoid an NPE when disposing a document that had animations targetting
     CSS properties on elements that subsequently became display:none.
+  * The startOffset="" attribute on textPath elements now allows negative
+    percentages.
 
 5. Misc
 

Modified: 
xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGTextPathElementBridge.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGTextPathElementBridge.java?rev=1073181&r1=1073180&r2=1073181&view=diff
==============================================================================
--- 
xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGTextPathElementBridge.java
 (original)
+++ 
xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGTextPathElementBridge.java
 Mon Feb 21 23:06:26 2011
@@ -126,9 +126,6 @@ public class SVGTextPathElementBridge ex
                 try {
                     startOffsetPercent = 
SVGUtilities.convertSVGNumber(percentString);
                 } catch (NumberFormatException e) {
-                    startOffsetPercent = -1;
-                }
-                if (startOffsetPercent < 0) {
                     throw new BridgeException
                         (ctx, textPathElement, ERR_ATTRIBUTE_VALUE_MALFORMED,
                          new Object[] {SVG_START_OFFSET_ATTRIBUTE, s});

Modified: 
xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java?rev=1073181&r1=1073180&r2=1073181&view=diff
==============================================================================
--- 
xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java
 (original)
+++ 
xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMTextPathElement.java
 Mon Feb 21 23:06:26 2011
@@ -151,7 +151,7 @@ public class SVGOMTextPathElement
             createLiveAnimatedLength
                 (null, SVG_START_OFFSET_ATTRIBUTE,
                  SVG_TEXT_PATH_START_OFFSET_DEFAULT_VALUE,
-                 SVGOMAnimatedLength.OTHER_LENGTH, true);
+                 SVGOMAnimatedLength.OTHER_LENGTH, false);
         href =
             createLiveAnimatedString(XLINK_NAMESPACE_URI, 
XLINK_HREF_ATTRIBUTE);
     }


Reply via email to