You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2001/03/15 19:56:46 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge SVGMarkerElementBridge.java
tkormann 01/03/15 10:56:45
Modified: sources/org/apache/batik/bridge SVGMarkerElementBridge.java
Log:
bug fix - default is 0
Revision Changes Path
1.7 +5 -3 xml-batik/sources/org/apache/batik/bridge/SVGMarkerElementBridge.java
Index: SVGMarkerElementBridge.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGMarkerElementBridge.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SVGMarkerElementBridge.java 2001/03/15 16:28:01 1.6
+++ SVGMarkerElementBridge.java 2001/03/15 18:56:39 1.7
@@ -38,7 +38,7 @@
* Bridge class for the <marker> element.
*
* @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
- * @version $Id: SVGMarkerElementBridge.java,v 1.6 2001/03/15 16:28:01 tkormann Exp $
+ * @version $Id: SVGMarkerElementBridge.java,v 1.7 2001/03/15 18:56:39 tkormann Exp $
*/
public class SVGMarkerElementBridge implements MarkerBridge,
CSSConstants,
@@ -117,10 +117,12 @@
return null;
}
- // 'orient' attribute - default is 'auto'
+ // 'orient' attribute - default is '0'
double orient;
s = markerElement.getAttributeNS(null, SVG_ORIENT_ATTRIBUTE);
- if (s.length() == 0 || VALUE_AUTO.equals(s)) {
+ if (s.length() == 0) {
+ orient = 0;
+ } else if (VALUE_AUTO.equals(s)) {
orient = Double.NaN;
} else {
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org